function _variable_realm_build in Variable 7.2
Build current realm.
Buids an array of variables for the current realm with higher weights overriding lower weights.
1 call to _variable_realm_build()
- variable_realm_rebuild in variable_realm/
variable_realm.module - Rebuild current variable realm.
File
- variable_realm/
variable_realm.module, line 500 - Variable API module - Realms
Code
function _variable_realm_build() {
$variables = array();
foreach (variable_realm_current() as $realm_controller) {
if ($values = $realm_controller
->getCurrentVariables()) {
$variables = array_merge($variables, $values);
}
}
return $variables;
}