You are here

function search404_menu in Search 404 6

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

Implementation of hook_menu().

File

./search404.module, line 11

Code

function search404_menu() {
  $items = array();
  $items['search404'] = array(
    'title' => 'Page not found',
    'access callback' => TRUE,
    'page callback' => 'search404_page',
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/search404'] = array(
    'title' => 'Search 404 settings',
    'description' => t('Administer search 404.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search404_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}