function systeminfo_admin_drupal in System Information 7.3
Same name and namespace in other branches
- 6.3 systeminfo.admin.drupal.inc \systeminfo_admin_drupal()
- 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 - Implements 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', array(
'items' => $toc,
'type' => 'ul',
'attributes' => array(
'class' => array(
'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;
}