function dblog_menu in Drupal 6
Same name and namespace in other branches
- 7 modules/dblog/dblog.module \dblog_menu()
Implementation of hook_menu().
File
- modules/
dblog/ dblog.module, line 43 - System monitoring and logging for administrators.
Code
function dblog_menu() {
$items['admin/settings/logging/dblog'] = array(
'title' => 'Database logging',
'description' => 'Settings for logging to the Drupal database logs. This is the most common method for small to medium sites on shared hosting. The logs are viewable from the admin pages.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'dblog_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'dblog.admin.inc',
);
$items['admin/reports/dblog'] = array(
'title' => 'Recent log entries',
'description' => 'View events that have recently been logged.',
'page callback' => 'dblog_overview',
'access arguments' => array(
'access site reports',
),
'weight' => -1,
'file' => 'dblog.admin.inc',
);
$items['admin/reports/page-not-found'] = array(
'title' => "Top 'page not found' errors",
'description' => "View 'page not found' errors (404s).",
'page callback' => 'dblog_top',
'page arguments' => array(
'page not found',
),
'access arguments' => array(
'access site reports',
),
'file' => 'dblog.admin.inc',
);
$items['admin/reports/access-denied'] = array(
'title' => "Top 'access denied' errors",
'description' => "View 'access denied' errors (403s).",
'page callback' => 'dblog_top',
'page arguments' => array(
'access denied',
),
'access arguments' => array(
'access site reports',
),
'file' => 'dblog.admin.inc',
);
$items['admin/reports/event/%'] = array(
'title' => 'Details',
'page callback' => 'dblog_event',
'page arguments' => array(
3,
),
'access arguments' => array(
'access site reports',
),
'type' => MENU_CALLBACK,
'file' => 'dblog.admin.inc',
);
return $items;
}