You are here

function variable_realm_controller in Variable 7

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

Get class and weight information for variable realm.

4 calls to variable_realm_controller()
variable_realm_admin_realm_overview in variable_realm_admin/variable_realm_admin.pages.inc
Lists available realms.
variable_realm_union in variable_realm_union/variable_realm_union.module
Get list of union realms.
_variable_realm_controller in variable_realm/variable_realm.module
Create realm controller object.
_variable_realm_weight in variable_realm/variable_realm.module
Get default weight for realm.

File

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

Code

function variable_realm_controller($realm = NULL) {
  $data =& drupal_static(__FUNCTION__);
  if (!isset($keys)) {
    $data = module_invoke_all('variable_realm_controller');
  }
  if ($realm) {
    return isset($data[$realm]) ? $data[$realm] : NULL;
  }
  else {
    return $data;
  }
}