This module extends the Drupal core variable API that handles persistent variables. It implements a class that:
Just took over the module. Will be making stable releases for Drupal 7 and will support Drupal 6 for major issues.
-
allows finding the directory where a library has been installed (branch 2.x for Drupal 6 and 7),
-
forces Drupal to re-build the menus (branch 2.x for Drupal 6 and 7),
-
allows obtaining the value of a persistent variable without passing the default value to each function call,
-
deletes multiple persistent variables,
-
and implements functions to centralize static PHP variables. The functions are a back port of drupal_static(), and drupal_static_reset() implemented in Drupal 7.
Installation notes
Install the module only if you are instructed to do so, or you are a developer and want to use the module.
If you are installing Variable API because it is a dependency of another module, you need to first install (and enable) Variable API, and then install (and enable) the other module. If the modules are enabled at the same time, you will get the error message class Vars not found. The same problem is actually present if you install a module that depends from the Variable API using Drush; in the moment I am writing this note, Drush will not download the Variable API module, with the consequence that you will get the error message class Vars not found.