summaryrefslogtreecommitdiff
path: root/modules/search/search.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-06-27 18:33:33 +0000
committerDries Buytaert <dries@buytaert.net>2005-06-27 18:33:33 +0000
commit58aee8cdad4baef160f7e0cf6dc5e245a1acc080 (patch)
tree329e6127e5033a4dcb9ebc60031a009c6b53cc90 /modules/search/search.module
parentd190e16c9ef0214293ea32306bfb49d3d1233654 (diff)
downloadbrdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.gz
brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.bz2
- Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
Diffstat (limited to 'modules/search/search.module')
-rw-r--r--modules/search/search.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 13fcde6de..d366f795e 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -158,8 +158,8 @@ function search_admin() {
$output .= form_group(t('Indexing throttle'), $group);
// Indexing settings:
$group = '<em>'. t('<p>Changing the setting below will cause the site index to be rebuilt. The search index is not cleared but systematically updated to reflect the new settings. Searching will continue to work but new content won\'t be indexed until all existing content has been re-indexed.</p><p>The default settings should be appropriate for the majority of sites.</p>') .'</em>';
- $group .= form_textfield(t('Minimum word length to index'), 'minimum_word_size', variable_get('minimum_word_size', 3), 3, 3, t('The number of characters a word has to be to be indexed. Words shorter than this will not be searchable.'));
- $group .= form_textfield(t('Minimum word length to search for'), 'remove_short', variable_get('remove_short', 3), 3, 3, t('The number of characters a word has to be to be searched for, including wildcard characters.'));
+ $group .= form_textfield(t('Minimum word length to index'), 'minimum_word_size', variable_get('minimum_word_size', 3), 5, 3, t('The number of characters a word has to be to be indexed. Words shorter than this will not be searchable.'));
+ $group .= form_textfield(t('Minimum word length to search for'), 'remove_short', variable_get('remove_short', 3), 5, 3, t('The number of characters a word has to be to be searched for, including wildcard characters.'));
$output .= form_group(t('Indexing settings'), $group);
return system_settings_form($output);
@@ -659,7 +659,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, $prompt ? 40 : 20, 255);
+ $box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
$box .= form_submit(t('Search'));
$box .= '</div>';
$output .= form_item($prompt, $box);