You are here

function search_reindex_confirm_submit in Drupal 7

Handler for wipe confirmation

File

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

Code

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