You are here

function filelog_ui_menu in File Log 6.2

Implementation of hook_menu()

File

./filelog_ui.module, line 36
Viewer UI for file based logging.

Code

function filelog_ui_menu() {
  $items['admin/settings/logging/filelog'] = array(
    'title' => 'File logging',
    'description' => 'Settings for logging to the File system. This is the most common method for Linux/UNIX boxes. The logs are viewable from the admin pages.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'filelog_ui_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'filelog_ui.admin.inc',
  );
  $items['admin/reports/filelog'] = array(
    'title' => 'Recent file log entries',
    'description' => 'View events that have recently been logged.',
    'page callback' => 'filelog_ui_overview',
    'access arguments' => array(
      'access site reports',
    ),
    'weight' => -1,
    'file' => 'filelog_ui.pages.inc',
  );
  $items['admin/reports/filelog-page-not-found'] = array(
    'title' => "Top 'page not found' errors - File logging",
    'description' => "View 'page not found' errors (404s).",
    'page callback' => 'filelog_ui_top',
    'page arguments' => array(
      'page not found',
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'filelog_ui.pages.inc',
  );
  $items['admin/reports/filelog-access-denied'] = array(
    'title' => "Top 'access denied' errors - File logging",
    'description' => "View 'access denied' errors (403s).",
    'page callback' => 'filelog_ui_top',
    'page arguments' => array(
      'access denied',
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'filelog_ui.pages.inc',
  );
  $items['admin/reports/filelog-entry/%filelog_entry'] = array(
    'title' => 'Details',
    'page callback' => 'filelog_ui_entry',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'access site reports',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'filelog_ui.pages.inc',
  );
  return $items;
}