function search_exclude_nid_menu in Search exclude nid 7
Implements hook_menu().
File
- ./
search_exclude_nid.module, line 11 - Excludes single node pages from search results
Code
function search_exclude_nid_menu() {
$items = array();
$items['admin/config/search/search_exclusion'] = array(
'file' => 'search_exclude_nid.admin.inc',
'title' => 'Hide nodes from search',
'description' => 'Excludes nodes from the site search based on their node ID. Handy if you have duplicated content somewhere on listing pages for instance.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'search_exclude_nid_search_exclusion_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer search exclude nids',
),
);
// Path with autocomplete function for nodes.
$items['search_exclusion/autocomplete'] = array(
'file' => 'search_exclude_nid.admin.inc',
'title' => 'Autocomplete for nodes',
'page callback' => 'search_exclude_nid_nodes_autocomplete',
'access arguments' => array(
'administer search exclude nids',
),
'type' => MENU_CALLBACK,
);
return $items;
}