You are here

function variable_realm_rebuild in Variable 7

Same name and namespace in other branches
  1. 7.2 variable_realm/variable_realm.module \variable_realm_rebuild()

Rebuild current variable realm

If there are $realm and $key parameters, the rebuild will happen only if this is the current realm key

Parameters

$realm: Optional realm name that has been set

$key: Optional realm value that has been set

7 calls to variable_realm_rebuild()
variable_realm_add in variable_realm/variable_realm.module
Set values for variable realm
variable_realm_del in variable_realm/variable_realm.module
Delete variable from realm
variable_realm_delete_variable in variable_realm/variable_realm.module
Delete variable for all keys on realm.
variable_realm_reset in variable_realm/variable_realm.module
Reset realms, deleting currently set ones
variable_realm_set in variable_realm/variable_realm.module
Set variable value for realm, for page request only

... See full list

File

variable_realm/variable_realm.module, line 432
Variable API module - Realms

Code

function variable_realm_rebuild($realm = NULL, $key = NULL) {
  if (!$realm || !$key || variable_realm_status($realm) == $key) {
    $GLOBALS['conf'] = variable_realm_build();
  }
}