search_settings_form_validate
- Versions
- 4.7
search_settings_form_validate($form_id, &$form)
Implementation of hook_validate().
Code
modules/search.module, line 183
<?php
function search_settings_form_validate($form_id, &$form) {
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'])) {
drupal_set_message(t('The index will be rebuilt.'));
search_wipe();
}
}
?>Login or register to post comments 