function variable_admin_page_modules in Variable 6
Variable overview, by module
1 string reference to 'variable_admin_page_modules'
- variable_admin_menu in variable_admin/
variable_admin.module - Implementation of hook_menu().
File
- variable_admin/
variable_admin.pages.inc, line 58 - Variable API module - Admin UI
Code
function variable_admin_page_modules() {
$groups = $display = array();
foreach (variable_info() as $name => $variable) {
if (empty($variable['parent'])) {
$groups[$variable['module']][$name] = $variable;
}
}
$modules = module_rebuild_cache();
foreach ($groups as $module => $variables) {
$display[$module] = array(
'#type' => 'fieldset',
'#title' => $modules[$module]->info['name'],
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#children' => variable_admin_list($variables),
);
}
$output = drupal_render($display);
$output .= drupal_get_form('variable_admin_reset_form');
return $output;
}