function variable_realm_global_set in Variable 7.2
Same name and namespace in other branches
- 7 variable_realm/variable_realm.module \variable_realm_global_set()
Switch global variable
Parameters
$name: Optional global variable name. If not set, it will reset all global variables to its original value.
$value: Optional new value for global variable. If not set, it will reset the variable to its original value.
$rebuild: Whether to rebuild the current global $conf
1 call to variable_realm_global_set()
- VariableRealmDefaultController::setRealmVariable in variable_realm/
variable_realm.class.inc - Implementation of VariableRealmControllerInterface::setRealmVariable().
File
- variable_realm/
variable_realm.module, line 348 - Variable API module - Realms
Code
function variable_realm_global_set($name, $value = NULL, $rebuild = TRUE) {
variable_realm_set('global', 'default', $name, $value, $rebuild);
}