You are here

function search404_menu in Search 404 5

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

Implementation of hook_menu().

File

./search404.module, line 11

Code

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