You are here

function variable_admin_page_overview in Variable 6

Variable overview, by group

1 string reference to 'variable_admin_page_overview'
variable_admin_menu in variable_admin/variable_admin.module
Implementation of hook_menu().

File

variable_admin/variable_admin.pages.inc, line 10
Variable API module - Admin UI

Code

function variable_admin_page_overview() {
  $display = array();
  foreach (variable_admin_build_groups() as $group => $variables) {
    $group_info = variable_group($group);
    $display[$group] = array(
      '#type' => 'fieldset',
      '#title' => $group_info['title'],
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
      '#children' => variable_admin_list($variables),
      '#description' => l(t('Edit group variables'), 'admin/settings/variable/group/' . $group),
    );
  }
  $output = drupal_render($display);
  $output .= drupal_get_form('variable_admin_reset_form');
  return $output;
}