function search_admin_settings_validate in Drupal 6
Same name and namespace in other branches
- 5 modules/search/search.module \search_admin_settings_validate()
- 7 modules/search/search.admin.inc \search_admin_settings_validate()
Validate callback.
1 string reference to 'search_admin_settings_validate'
- search_admin_settings in modules/
search/ search.admin.inc - Menu callback; displays the search module settings page.
File
- modules/
search/ search.admin.inc, line 74 - Admin page callbacks for the search module.
Code
function search_admin_settings_validate($form, &$form_state) {
if ($form_state['values']['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_state['values']['minimum_word_size'] || variable_get('overlap_cjk', TRUE) != $form_state['values']['overlap_cjk']) {
drupal_set_message(t('The index will be rebuilt.'));
search_wipe();
}
}