You are here

function variable_realm_info in Variable 7

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

Get information about variable realms.

20 calls to variable_realm_info()
variable_realm_admin_access in variable_realm_admin/variable_realm_admin.module
Check permission for administering realm
variable_realm_admin_realm_info in variable_realm_admin/variable_realm_admin.pages.inc
Lists available realms.
variable_realm_admin_realm_overview in variable_realm_admin/variable_realm_admin.pages.inc
Lists available realms.
variable_realm_admin_realm_title in variable_realm_admin/variable_realm_admin.module
Retrieve title of given realm.
variable_realm_edit_variables_form in variable_realm/variable_realm.form.inc
Edit variables for realm.

... See full list

File

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

Code

function variable_realm_info($realm = NULL) {
  $realm_info =& drupal_static(__FUNCTION__);
  if (!isset($realm_info)) {
    $realm_info = module_invoke_all('variable_realm_info');
    drupal_alter('variable_realm_info', $realm_info);
  }
  if ($realm) {
    return isset($realm_info[$realm]) ? $realm_info[$realm] : array();
  }
  else {
    return $realm_info;
  }
}