diff options
-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; } |