You are here

function pagenotfound_reports_menu in Page Not Found Reports 7

Same name and namespace in other branches
  1. 6.2 pagenotfound_reports.module \pagenotfound_reports_menu()
  2. 6 pagenotfound_reports.module \pagenotfound_reports_menu()

Implements hook_menu().

File

./pagenotfound_reports.module, line 12
Page Not Found Reports

Code

function pagenotfound_reports_menu() {
  $items = array();
  $items['admin/reports/404'] = array(
    'title' => '404 Reports',
    'description' => 'Reports on 404 (page not found) errors',
    'page callback' => 'pagenotfound_reports_top_404s',
    'access arguments' => array(
      'access site reports',
    ),
  );
  $items['admin/reports/404/overview'] = array(
    'title' => 'Most Common',
    'description' => 'Reports on 404 (page not found) errors',
    'page callback' => 'pagenotfound_reports_top_404s',
    'access arguments' => array(
      'access site reports',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/reports/404/referers'] = array(
    'title' => 'Referers',
    'description' => 'Pages that link to or include (as images or Javascript) paths that are not defined.',
    'page callback' => 'pagenotfound_reports_referers',
    'access arguments' => array(
      'access site reports',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/reports/404/all'] = array(
    'title' => 'All 404s',
    'description' => 'All 404 errors in the log.',
    'page callback' => 'pagenotfound_reports_all',
    'access arguments' => array(
      'access site reports',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['admin/reports/404/tips'] = array(
    'title' => 'Tips',
    'description' => 'Tips to minimize 404 errors.',
    'page callback' => 'pagenotfound_reports_tips',
    'access arguments' => array(
      'access site reports',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  return $items;
}