summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 9df070d8d..d23ef0a4c 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -197,15 +197,15 @@ function search_menu($may_cache) {
}
/**
- * Implementation of hook_validate().
+ * Validate callback.
*/
-function search_admin_settings_validate($form_id, &$form) {
+function search_admin_settings_validate($form_id, $form_values) {
if ($_POST['op'] == t('Re-index site')) {
drupal_goto('admin/settings/search/wipe');
}
// If these settings change, the index needs to be rebuilt.
- if ((variable_get('minimum_word_size', 3) != $form['minimum_word_size']) ||
- (variable_get('overlap_cjk', TRUE) != $form['overlap_cjk'])) {
+ if ((variable_get('minimum_word_size', 3) != $form_values['minimum_word_size']) ||
+ (variable_get('overlap_cjk', TRUE) != $form_values['overlap_cjk'])) {
drupal_set_message(t('The index will be rebuilt.'));
search_wipe();
}