function systeminfo_admin_overview in System Information 6.3
Same name and namespace in other branches
- 7.3 systeminfo.admin.inc \systeminfo_admin_overview()
- 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 - Implementation of 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', $toc, NULL, 'ul', array(
'class' => '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 of 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;
}