function commons_search_menu_alter in Drupal Commons 7.3
Implements hook_menu_alter().
File
- modules/
commons/ commons_search/ commons_search.module, line 24
Code
function commons_search_menu_alter(&$items) {
// Enable the search link and position it in the main menu.
if (isset($items['search'])) {
$items['search']['type'] = MENU_NORMAL_ITEM;
$items['search']['menu_name'] = 'main-menu';
$items['search']['weight'] = 3;
}
}