You are here

public static function Vars::staticReset in Variable API 6

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

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

This is the back port of the function drupal_static_reset() defined in Drupal 7.

Parameters

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

8 calls to Vars::staticReset()
Vars::removeDefaults in ./vars.module
Removes the default values contained in the table variable_default.
Vars::saveDefaults in ./vars.module
Saves the default value for the variables defined from the module.
VarsBaseTestCase::testBaseFunctions in tests/vars.test
VarsExtendedTestCase::testDeletingVars in tests/vars.test
VarsExtendedTestCase::testReadingVars in tests/vars.test

... See full list

File

./vars.module, line 391
Implement an API to handle persistent variables.

Class

Vars
@file Implement an API to handle persistent variables.

Code

public static function staticReset($name = NULL) {
  self::staticValue($name, NULL, TRUE);
}