From b22d877ff84ad31b17d19090b8480ca2911ccef4 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 31 Mar 2006 04:57:49 +0000 Subject: #56457 by chx: The search box that can be displayed by some themes (e.g. bluemarine) was not working. --- modules/system/system.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/system/system.module') 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); } -- cgit v1.2.3