From 0a69b04870648b2f017710862ef44b9a7053813f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 1 Oct 2007 08:50:36 +0000 Subject: [PATCH] #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 --- modules/search/search.module | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/search/search.module b/modules/search/search.module index e684f391ff7..dde2f14317f 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -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; } /**