You are here

function custom_search_menu in Custom Search 7

Same name and namespace in other branches
  1. 6 custom_search.module \custom_search_menu()

Implements hook_menu().

File

./custom_search.module, line 36
Bring customizations to the default search box

Code

function custom_search_menu() {
  $items['admin/config/search/custom_search'] = array(
    'title' => 'Custom Search',
    'description' => 'Customize the default search, change labels, default texts, ordering, and display content types and taxonomy selectors.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'custom_search_admin',
    ),
    'access arguments' => array(
      'administer custom search',
    ),
    'file' => 'custom_search.admin.inc',
  );
  $items['admin/config/search/custom_search/settings'] = array(
    'title' => 'Settings',
    'description' => 'Change the labels, the default texts and the ordering of elements.',
    'access arguments' => array(
      'administer custom search',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/config/search/custom_search/content'] = array(
    'title' => 'Content',
    'description' => 'Select the content types to present as search options in the search block.',
    'page arguments' => array(
      'custom_search_content_admin',
    ),
    'access arguments' => array(
      'administer custom search',
    ),
    'file' => 'custom_search.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/search/custom_search/results'] = array(
    'title' => 'Results page',
    'description' => 'Customize the search results page.',
    'page arguments' => array(
      'custom_search_results_admin',
    ),
    'access arguments' => array(
      'administer custom search',
    ),
    'file' => 'custom_search.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  return $items;
}