diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-10-05 14:49:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-10-05 14:49:52 +0000 |
commit | a8f20420d9b623fd81f115233e02c4654c5b64f9 (patch) | |
tree | 8c6db20560864bfbe440f20099472e0aa8818652 /modules | |
parent | 5eab30f6ac16822d0950de86c2a914228b5cb108 (diff) | |
download | brdo-a8f20420d9b623fd81f115233e02c4654c5b64f9.tar.gz brdo-a8f20420d9b623fd81f115233e02c4654c5b64f9.tar.bz2 |
- Patch #87049 by edkwh, chx and hunmonk: fixed the form in the search block.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search/search.module | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/search/search.module b/modules/search/search.module index 88bdf5ff6..4c811ca1a 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -1045,7 +1045,7 @@ function search_form_submit($form_id, $form_values) { /** * Output a search form for the search block and the theme's search box. */ -function search_box() { +function search_box($form_id) { // Use search_keys instead of keys to avoid ID conflicts with the search block. $form[$form_id .'_keys'] = array( '#type' => 'textfield', @@ -1285,7 +1285,13 @@ function theme_search_page($results, $type) { } function search_forms() { - $forms['search_theme_form']['callback'] = 'search_box'; - $forms['search_block_form']['callback'] = 'search_box'; + $forms['search_theme_form']= array( + 'callback' => 'search_box', + 'callback arguments' => array('search_theme_form'), + ); + $forms['search_block_form']= array( + 'callback' => 'search_box', + 'callback arguments' => array('search_block_form'), + ); return $forms; } |