You are here

function custom_search_menu_alter in Custom Search 6

Implementation of hook_menu_alter(). (needed for compatibility with Search Ranking)

File

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

Code

function custom_search_menu_alter(&$callbacks) {

  // Panels integration
  if ($callbacks['search/node/%menu_tail']['page callback'] == 'page_manager_search_page') {
    return;
  }
  $callbacks['search/node/%menu_tail']['page callback'] = 'search_view';
  $callbacks['search/node/%menu_tail']['file'] = 'search.pages.inc';
  $callbacks['search/node/%menu_tail']['file path'] = drupal_get_path('module', 'search');
}