public static function Vars::staticReset in Variable API 7
Same name and namespace in other branches
- 6.2 vars.module \Vars::staticReset()
- 6 vars.module \Vars::staticReset()
- 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()
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);
}