You are here

public static function Vars::staticReset in Variable API 7

Same name and namespace in other branches
  1. 6.2 vars.module \Vars::staticReset()
  2. 6 vars.module \Vars::staticReset()
  3. 7.2 vars.classes.inc \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.

7 calls to Vars::staticReset()
VarsBaseTestCase::testBaseFunctions in tests/vars.test
VarsExtendedTestCase::testDeletingVars in tests/vars.test
VarsExtendedTestCase::testReadingVars in tests/vars.test
VarsExtendedTestCase::testRenamingVars in tests/vars.test
VarsExtendedTestCase::testWritingVars in tests/vars.test

... See full list

File

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

Class

Vars
@file Implement an API to handle persistent variables.

Code

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