summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-03-31 04:57:49 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-03-31 04:57:49 +0000
commitb22d877ff84ad31b17d19090b8480ca2911ccef4 (patch)
tree3b6400c238092d9cfe9da3992cda1a183c7d6fe7 /modules/system
parenta539a3aa40f1e5575313c5d70a46baa2a47f6938 (diff)
downloadbrdo-b22d877ff84ad31b17d19090b8480ca2911ccef4.tar.gz
brdo-b22d877ff84ad31b17d19090b8480ca2911ccef4.tar.bz2
#56457 by chx: The search box that can be displayed by some themes (e.g. bluemarine) was not working.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index d52197656..a0dc4eb26 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1194,8 +1194,7 @@ function system_theme_settings($key = '') {
* Output a search form.
*/
function search_box($path = NULL) {
- $form['#action'] = is_null($path) ? url('search') : url($path);
- $form['keys'] = array('#type' => 'textfield', '#size'=> 15, '#value' => '', '#attributes' => array('alt' => t('Enter the terms you wish to search for.')));
+ $form['keys'] = array('#type' => 'textfield', '#size'=> 15, '#default_value' => '', '#attributes' => array('alt' => t('Enter the terms you wish to search for.')));
$form['submit'] = array('#type' => 'submit', '#value' => t('Search'));
return drupal_get_form('search_box', $form);
}