function custom_search_menu in Custom Search 6
Same name and namespace in other branches
- 7 custom_search.module \custom_search_menu()
Implementation of hook_menu().
File
- ./
custom_search.module, line 34 - Bring customizations to the default search box
Code
function custom_search_menu() {
$items['admin/settings/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/settings/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/settings/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/settings/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;
}