You are here

function systeminfo_admin_drupal in System Information 6.3

Same name and namespace in other branches
  1. 7.3 systeminfo.admin.drupal.inc \systeminfo_admin_drupal()
  2. 7.2 systeminfo.admin.drupal.inc \systeminfo_admin_drupal()

Menu callback; displays the Drupal page.

1 string reference to 'systeminfo_admin_drupal'
systeminfo_menu in ./systeminfo.module
Implementation of hook_menu().

File

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

Code

function systeminfo_admin_drupal() {
  drupal_add_css(drupal_get_path('module', 'systeminfo') . '/styles/systeminfo.css');
  $toc = array(
    '<a href="#nodes">' . t('Content') . '</a>',
    '<a href="#users">' . t('Users') . '</a>',
    '<a href="#roles">' . t('Roles') . '</a>',
    '<a href="#modules">' . t('Modules') . '</a>',
    '<a href="#themes">' . t('Themes') . '</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="nodes">' . t('Content') . '</h3>';
  $output .= _systeminfo_admin_drupal_content();
  $output .= '<h3 id="users">' . t('Users') . '</h3>';
  $output .= _systeminfo_admin_drupal_users();
  $output .= '<h3 id="roles">' . t('Roles') . '</h3>';
  $output .= _systeminfo_admin_drupal_roles();
  $output .= '<h3 id="modules">' . t('Modules') . '</h3>';
  $output .= _systeminfo_admin_drupal_modules();
  $output .= '<h3 id="themes">' . t('Themes') . '</h3>';
  $output .= _systeminfo_admin_drupal_themes();
  return $output;
}