summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/search.module2
-rw-r--r--modules/search/search.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/search.module b/modules/search.module
index 002ea09c2..5c90c798b 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -645,7 +645,7 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
- $box .= form_textfield('', 'keys', $keys, 40, 255);
+ $box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 20, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);
diff --git a/modules/search/search.module b/modules/search/search.module
index 002ea09c2..5c90c798b 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -645,7 +645,7 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
$output = ' <div class="search-form">';
$box = '<div class="container-inline">';
- $box .= form_textfield('', 'keys', $keys, 40, 255);
+ $box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 20, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);