function systeminfo_menu in System Information 5.2
Same name and namespace in other branches
- 5 systeminfo.module \systeminfo_menu()
- 6.3 systeminfo.module \systeminfo_menu()
- 6 systeminfo.module \systeminfo_menu()
- 6.2 systeminfo.module \systeminfo_menu()
- 7.3 systeminfo.module \systeminfo_menu()
- 7.2 systeminfo.module \systeminfo_menu()
Implementation of hook_menu().
File
- ./
systeminfo.module, line 39 - Displays information about the Drupal installation and system environment.
Code
function systeminfo_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/logs/systeminfo',
'title' => t('System information'),
'description' => t('Display information about the Drupal installation and system environment.'),
'callback' => 'systeminfo_display_information',
'access' => user_access('access system information'),
);
$items[] = array(
'path' => 'admin/logs/systeminfo/drupal',
'title' => 'Drupal',
'description' => t('Display information about the Drupal installation.'),
'callback' => 'systeminfo_display_drupal',
'weight' => 0,
);
$items[] = array(
'path' => 'admin/logs/systeminfo/php',
'title' => 'PHP',
'description' => t('Display current state of PHP.'),
'callback' => 'systeminfo_display_php',
'weight' => 1,
);
$items[] = array(
'path' => 'admin/logs/systeminfo/database',
'title' => t('Database server'),
'description' => t('Display information about the database server.'),
'callback' => 'systeminfo_display_database',
'weight' => 2,
);
$items[] = array(
'path' => 'admin/logs/systeminfo/database/content',
'title' => 'Database table content',
'callback' => 'systeminfo_display_database_table_content',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/logs/systeminfo/database/structure',
'title' => 'Database table structure',
'callback' => 'systeminfo_display_database_table_structure',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/systeminfo',
'title' => t('System information'),
'description' => t('Configure the display of System information.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'systeminfo_settings',
),
'access' => user_access('administer system information'),
);
}
return $items;
}