summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-01 08:50:36 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-01 08:50:36 +0000
commit0a69b04870648b2f017710862ef44b9a7053813f (patch)
tree78ee1a514de0871f304f925a18f68832c09ba577 /modules
parent0cf669611fb4e9f00612fb23136525651a311566 (diff)
downloadbrdo-0a69b04870648b2f017710862ef44b9a7053813f.tar.gz
brdo-0a69b04870648b2f017710862ef44b9a7053813f.tar.bz2
#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
Diffstat (limited to 'modules')
-rw-r--r--modules/search/search.module4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index e684f391f..dde2f1431 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;
}
/**