You are here

function search_wipe_confirm_submit in Drupal 6

Same name and namespace in other branches
  1. 4 modules/search.module \search_wipe_confirm_submit()
  2. 5 modules/search/search.module \search_wipe_confirm_submit()

Handler for wipe confirmation

File

modules/search/search.admin.inc, line 19
Admin page callbacks for the search module.

Code

function search_wipe_confirm_submit(&$form, &$form_state) {
  if ($form['confirm']) {
    search_wipe();
    drupal_set_message(t('The index will be rebuilt.'));
    $form_state['redirect'] = 'admin/settings/search';
    return;
  }
}