You are here

function search404_menu in Search 404 7

Same name and namespace in other branches
  1. 5 search404.module \search404_menu()
  2. 6 search404.module \search404_menu()

Implements hook_menu().

File

./search404.module, line 32
Handles all the searching when a 404 occurs.

Code

function search404_menu() {
  $items = array();
  $items['search404'] = array(
    'title' => 'Page not found',
    'access callback' => TRUE,
    'page callback' => 'search404_page',
    'file' => 'search404.page.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/search/search404'] = array(
    'title' => 'Search 404 settings',
    'description' => 'Configure searching for keywords from URLs that result in 404 errors.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search404_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer search',
    ),
    'file' => 'search404.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}