Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: 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