You are here

public static function Vars::staticReset in Variable API 6.2

Same name and namespace in other branches
  1. 6 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.

7 calls to Vars::staticReset()
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
VarsExtendedTestCase::testRenamingVars in tests/vars.test

... See full list

File

./vars.module, line 467
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);
}