You are here

function variable_realm_list in Variable 7

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

Get list of all available realms ordered by default weight.

3 calls to variable_realm_list()
variable_realm_admin_menu in variable_realm_admin/variable_realm_admin.module
Implements hook_menu().
variable_realm_variable_delete in variable_realm/variable_realm.module
Implements hook_variable_delete().
_variable_realm_variable_settings_form_list in variable_realm/variable_realm.form.inc
Get variable list for settings forms handling multiple realms.
1 string reference to 'variable_realm_list'
variable_realm_variable_type_info in variable_realm/variable_realm.variable.inc
Implements hook_variable_type_info().

File

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

Code

function variable_realm_list() {
  $list = array();
  foreach (variable_realm_info() as $name => $info) {
    $list[$name] = $info['title'];
    uksort($list, '_variable_realm_sort');
  }
  return $list;
}