function variable_realm_admin_realm_info in Variable 7
Lists available realms.
1 string reference to 'variable_realm_admin_realm_info'
- variable_realm_admin_menu in variable_realm_admin/
variable_realm_admin.module - Implements hook_menu().
File
- variable_realm_admin/
variable_realm_admin.pages.inc, line 47 - Realm Admin - Pages and forms.
Code
function variable_realm_admin_realm_info($realm_name) {
$info = variable_realm_info($realm_name);
$build['title'] = array(
'#type' => 'item',
'#title' => t('Name'),
'#markup' => $info['title'],
);
$build['keys'] = array(
'#theme' => 'item_list',
'#title' => t('Keys'),
'#items' => variable_realm_keys($realm_name),
);
$build['variables'] = array(
'#theme' => 'item_list',
'#title' => t('Variables'),
'#items' => variable_realm_get_variable_list($realm_name),
);
if (!empty($info['select'])) {
$build['options'] = array(
'#theme' => 'item_list',
'#title' => t('Options'),
'#items' => array(
l(t('Configure'), 'admin/config/system/variable/realm/' . $realm_name . '/configure'),
l(t('Edit'), 'admin/config/system/variable/realm/' . $realm_name . '/edit'),
),
);
}
return $build;
}