You are here

public static function Vars::staticReset in Variable API 7.2

Same name and namespace in other branches
  1. 6.2 vars.module \Vars::staticReset()
  2. 6 vars.module \Vars::staticReset()
  3. 7 vars.module \Vars::staticReset()

Resets one or all centrally stored static variable(s).

This static method is provided for compatibility with code using Drupal 6; code for Drupal 7 should use the function provided by Drupal.

Parameters

$name: Name of the static variable to reset. Omit to reset all variables.

2 calls to Vars::staticReset()
Vars::saveDefaults in ./vars.classes.inc
Saves the default value for the variables defined from the module.
vars_modules_uninstalled in ./vars.module
Implements hook_modules_uninstalled().

File

./vars.classes.inc, line 461
Classes implemented by the Variable API module.

Class

Vars
@file Classes implemented by the Variable API module.

Code

public static function staticReset($name = NULL) {
  drupal_static($name, NULL, TRUE);
}