diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-07 20:57:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-07 20:57:39 +0000 |
commit | 451dbd17a6317bf51bf9a39f5df25263a65b408f (patch) | |
tree | 854f307fd3b006f715a011d38eecb1af0f8c662e | |
parent | 16262e03d50a7590d4dd08070e88c76954cbbf83 (diff) | |
download | brdo-451dbd17a6317bf51bf9a39f5df25263a65b408f.tar.gz brdo-451dbd17a6317bf51bf9a39f5df25263a65b408f.tar.bz2 |
- Patch #28784 by Neil: improved HTML/CSS of search form.
-rw-r--r-- | modules/search.module | 4 | ||||
-rw-r--r-- | modules/search/search.module | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/modules/search.module b/modules/search.module index 74e137b7f..a1f10df44 100644 --- a/modules/search.module +++ b/modules/search.module @@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) { $prompt = t('Enter your keywords'); } - $output = ' <div class="search-form">'; $box = '<div class="container-inline">'; $box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255); $box .= form_submit(t('Search')); $box .= '</div>'; $output .= form_item($prompt, $box); - $output .= '</div>'; - return form($output, 'post', $action); + return form($output, 'post', $action, array('class' => 'search-form')); } /** diff --git a/modules/search/search.module b/modules/search/search.module index 74e137b7f..a1f10df44 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) { $prompt = t('Enter your keywords'); } - $output = ' <div class="search-form">'; $box = '<div class="container-inline">'; $box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255); $box .= form_submit(t('Search')); $box .= '</div>'; $output .= form_item($prompt, $box); - $output .= '</div>'; - return form($output, 'post', $action); + return form($output, 'post', $action, array('class' => 'search-form')); } /** |