You are here

function search_settings_form_validate in Drupal 4

Implementation of hook_validate().

File

modules/search.module, line 183
Enables site-wide keyword searching.

Code

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();
  }
}