diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-23 10:30:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-23 10:30:03 +0000 |
commit | f29e0405f42b832459c136ec6862cd5d630f008b (patch) | |
tree | 67182462de516e577627bf331a96a687418c3be5 /modules/search.module | |
parent | 688197e8cd3c75dae9786cd1c0e20fd96e8516d8 (diff) | |
download | brdo-f29e0405f42b832459c136ec6862cd5d630f008b.tar.gz brdo-f29e0405f42b832459c136ec6862cd5d630f008b.tar.bz2 |
- Patch #49799: fixed form goto problem (Today's critical bugfix #1.)
Diffstat (limited to 'modules/search.module')
-rw-r--r-- | modules/search.module | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/search.module b/modules/search.module index 57e35a5f8..d2c6f5e76 100644 --- a/modules/search.module +++ b/modules/search.module @@ -990,9 +990,7 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) { $prompt = t('Enter your keywords'); } - $form = array(); - $form['#action'] = $action; - $form['#attributes'] = array('class' => 'search-form'); + $form = array('#action' => $action, '#attributes' => array('class' => 'search-form'), '#redirect' => FALSE); $form['basic'] = array('#type' => 'item', '#title' => $prompt); $form['basic']['inline'] = array('#type' => 'markup', '#prefix' => '<div class="container-inline">', '#suffix' => '</div>'); $form['basic']['inline']['keys'] = array('#type' => 'textfield', '#title' => '', '#default_value' => $keys, '#size' => $prompt ? 40 : 20, '#maxlength' => 255); |