Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
search.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2008 at 05:18 UTC
Updated:
29 Jul 2014 at 17:47 UTC
Seems that site search box do not take search type into account:
function search_box_form_submit($form, &$form_state) {
$form_id = $form['form_id']['#value'];
$form_state['redirect'] = 'search/node/'. trim($form_state['values'][$form_id]);
}
It is always passing 'search/node/' as a default search type. I want to have my search type to be used as default instead of node. Maybe it would be better to implement any hidden parameter in form showing the search type? If it is not present search_box_form_submit will use 'search/node/' as type. This would provide backward comportability.
Thanks,
Grigory
Comments
Comment #1
douggreen commentedI think that your solution is to override theme_search_form(). But I'm bumping this to a 7.x feature request.
Comment #2
jhodgdonWell, this didn't make it into Drupal 7, sorry! Bumping to Drupal 8 at this point.
Comment #3
jhodgdonComment #4
jhodgdonDuplicate of
#1762848: Add ability to set order of search tabs