You are here

function variable_realm_union in Variable 7

Get list of union realms.

This functions gets the data from hook_variable_realm_controller(), not from variable_realm_info() as it may be needed very early in the bootstrap.

Return value

Multiple arrays of realm names in a union indexed by realm name. Example: array('domain_language' => array('domain', 'language'))

4 calls to variable_realm_union()
variable_realm_union_variable_realm_info_alter in variable_realm_union/variable_realm_union.variable.inc
Implements hook_variable_realm_info_alter();
variable_realm_union_variable_realm_params_alter in variable_realm_union/variable_realm_union.module
Implements hook variable_realm_params_alter().
variable_realm_union_variable_realm_switch in variable_realm_union/variable_realm_union.module
Implements hook_variable_realm_switch().
variable_realm_union_variable_settings_form_alter in variable_realm_union/variable_realm_union.variable.inc
Implements hook_variable_settings_form_alter().

File

variable_realm_union/variable_realm_union.module, line 17
Drupal Module - Variable Realm Union.

Code

function variable_realm_union() {
  $list = array();
  foreach (variable_realm_controller() as $realm => $data) {
    if (!empty($data['union'])) {
      $list[$realm] = $data['union'];
    }
  }
  return $list;
}