1 system.theme.inc theme_system_admin_index($variables)

Returns HTML for the output of the dashboard page.

Parameters

$variables: An associative array containing:

  • menu_items: An array of modules to be displayed.

Related topics

File

core/modules/system/system.theme.inc, line 542
Theme functions for the System module.

Code

function theme_system_admin_index($variables) {
  $menu_items = $variables['menu_items'];
  $blocks = array();

  // Iterate over all modules.
  foreach ($menu_items as $module => $block) {
    list($description, $items) = $block;

    // Output links.
    if (count($items)) {
      $block = array();
      $block['title'] = $module;
      $block['content'] = theme('admin_block_content', array('content' => $items));
      $block['description'] = t($description);
      $block['show'] = TRUE;

      if ($block_output = theme('admin_block', array('block' => $block))) {
        $blocks[] = $block_output;
      }
    }
  }

  $output = '<div class="admin clearfix">';
  foreach ($blocks as $block) {
    $output .= $block;
  }
  $output .= '</div>';

  return $output;
}