You are here

function searchindex_wipe_confirm_submit in Search Index Wipe 7

Confirmation form submit. Truncates all search related tables.

File

./searchindex_wipe.module, line 79
Enables wipe of search index.

Code

function searchindex_wipe_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    searchindex_wipe_truncate_table();
  }
  $form_state['redirect'] = 'admin/config/search/settings';
}