You are here

function searchindex_wipe_all in Search Index Wipe 8

Same name and namespace in other branches
  1. 7 searchindex_wipe.module \searchindex_wipe_all()

Redirect to confirmation link.

1 string reference to 'searchindex_wipe_all'
searchindex_wipe_form_search_admin_settings_alter in ./searchindex_wipe.module
Implements hook_form_FORM_ID_alter().

File

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

Code

function searchindex_wipe_all(&$form, FormStateInterface $form_state) {
  $url = new Url('searchindex_wipe.reindex_confirm');
  $form_state
    ->setRedirectUrl($url);
}