function variable_global_reset in Variable 6
Reset global variables to original values
File
- ./
variable.module, line 157 - Variable API module
Code
function variable_global_reset($name = NULL) {
$original =& variable_static('variable_global', array());
if (!$name) {
foreach ($original as $key => $value) {
$GLOBALS[$key] = $value;
}
}
elseif (isset($original[$name])) {
$GLOBALS[$name] = $original[$name];
}
}