summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-09-08 16:33:02 +0000
committerDries Buytaert <dries@buytaert.net>2006-09-08 16:33:02 +0000
commit6f0e54b037618676af98d7c59f87b16b0745d575 (patch)
treedd4b4df4d0be79b3d449b291ea75342dc5c9107d /modules/search
parent6ce212e4ebeccb43e4e65421816d99c02019b9b7 (diff)
downloadbrdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.gz
brdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.bz2
- Patch #82465 by webchick: renamed variables in hooks for consistency.
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();
}