#104662 by chx: the search block form might not be available on the search page itself, so that target was not right for search block form submissions

6.x
Gábor Hojtsy 2007-10-01 08:50:36 +00:00
parent 0cf669611f
commit 0a69b04870
1 changed files with 0 additions and 4 deletions

View File

@ -949,9 +949,6 @@ function search_box(&$form_state, $form_id) {
'#attributes' => array('title' => t('Enter the terms you wish to search for.')),
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Search'));
// Always go to the search page since the search form is not guaranteed to be
// on every page.
$form['#action'] = url('search/node');
$form['#submit'][] = 'search_box_form_submit';
$form['#validate'][] = 'search_box_form_validate';
@ -964,7 +961,6 @@ function search_box(&$form_state, $form_id) {
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 .'_keys']);
return;
}
/**