You are here

function variable_realm_build in Variable 7

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 235
Variable API module - Realms

Code

function variable_realm_build() {
  $variables = array();
  foreach (variable_realm_current() as $realm => $key) {
    if ($key !== FALSE && ($values = variable_realm($realm, $key)
      ->variable_list())) {
      $variables = array_merge($variables, $values);
    }
  }
  return $variables;
}