function variable_realm_list_all in Variable 7.2
Get all available realm controllers ordered by default weight.
5 calls to variable_realm_list_all()
- variable_admin_menu in variable_admin/
variable_admin.module - Implements hook_menu().
- variable_realm_list in variable_realm/
variable_realm.module - Get list of all available realm names ordered by default weight.
- 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.
- _variable_realm_variable_settings_form_switcher in variable_realm/
variable_realm.form.inc - Add realm switcher to the form.
File
- variable_realm/
variable_realm.module, line 74 - Variable API module - Realms
Code
function variable_realm_list_all() {
$list = array();
foreach (array_keys(variable_realm_info()) as $name) {
if ($controller = variable_realm_controller($name)) {
$list[$name] = $controller;
}
uasort($list, '_variable_realm_sort_default');
}
return $list;
}