You are here

function systeminfo_admin_overview in System Information 7.3

Same name and namespace in other branches
  1. 6.3 systeminfo.admin.inc \systeminfo_admin_overview()
  2. 7.2 systeminfo.admin.inc \systeminfo_admin_overview()

Menu callback; displays the overview page.

1 string reference to 'systeminfo_admin_overview'
systeminfo_menu in ./systeminfo.module
Implements hook_menu().

File

./systeminfo.admin.inc, line 12
Admin page callbacks for the systeminfo module.

Code

function systeminfo_admin_overview() {
  drupal_add_css(drupal_get_path('module', 'systeminfo') . '/styles/systeminfo.css');
  $toc = array(
    array(
      '<a href="#drupal">' . t('Drupal') . '</a>',
      'children' => array(
        '<a href="#nodes">' . t('Content') . '</a>',
        '<a href="#users">' . t('Users') . '</a>',
        '<a href="#modules">' . t('Modules') . '</a>',
        '<a href="#themes">' . t('Themes') . '</a>',
      ),
    ),
    '<a href="#php">' . t('PHP') . '</a>',
    '<a href="#database">' . t('Database system') . '</a>',
    '<a href="#webserver">' . t('Web server') . '</a>',
  );
  $output = '<h3 id="toc">' . t('Table of contents') . '</h3>';
  $output .= theme('item_list', array(
    'items' => $toc,
    'type' => 'ul',
    'attributes' => array(
      'class' => array(
        'systeminfo',
        'systeminfo-toc',
      ),
    ),
  ));
  $output .= '<h3 id="drupal">' . t('Drupal') . '</h3>';
  $output .= _systeminfo_admin_overview_drupal();
  $output .= '<h4 id="nodes">' . t('Content') . '</h4>';
  $output .= _systeminfo_admin_overview_drupal_content();
  $output .= '<h4 id="users">' . t('Users') . '</h4>';
  $output .= _systeminfo_admin_overview_drupal_users();
  $output .= '<h4 id="modules">' . t('Modules') . '</h4>';
  $output .= _systeminfo_admin_overview_drupal_modules();
  $output .= '<h4 id="themes">' . t('Themes') . '</h4>';
  $output .= _systeminfo_admin_overview_drupal_themes();
  $output .= '<p>' . t('More information about the current state of the Drupal installation can be found <a href="@drupal" title="View current state of the Drupal installation.">here</a>.', array(
    '@drupal' => url('admin/reports/systeminfo/drupal'),
  )) . '</p>';
  $output .= '<h3 id="php">' . t('PHP') . '</h3>';
  $output .= _systeminfo_admin_overview_php();
  $output .= '<p>' . t('More information about the current state of PHP can be found <a href="@php" title="View current state of PHP.">here</a>.', array(
    '@php' => url('admin/reports/systeminfo/php'),
  )) . '</p>';
  $output .= '<h3 id="database">' . t('Database system') . '</h3>';
  $output .= _systeminfo_admin_overview_database();
  $output .= '<p>' . t('More information about the current state of the database system can be found <a href="@database" title="View current state the database system.">here</a>.', array(
    '@database' => url('admin/reports/systeminfo/database'),
  )) . '</p>';
  $output .= '<h3 id="webserver">' . t('Web server') . '</h3>';
  $output .= _systeminfo_admin_overview_webserver();
  return $output;
}