You are here

function watchdog_menu in Drupal 4

Same name and namespace in other branches
  1. 5 modules/watchdog/watchdog.module \watchdog_menu()

Implementation of hook_menu().

File

modules/watchdog.module, line 40
System monitoring and logging for administrators.

Code

function watchdog_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/logs',
      'title' => t('logs'),
      'callback' => 'watchdog_overview',
    );
    $items[] = array(
      'path' => 'admin/logs/event',
      'title' => t('details'),
      'callback' => 'watchdog_event',
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}