You are here

function apachesolr_attachments_index_action_form_reset_submit in Apache Solr Attachments 6.3

Same name and namespace in other branches
  1. 7 apachesolr_attachments.admin.inc \apachesolr_attachments_index_action_form_reset_submit()

Submit handler for the Indexer actions form, reset button.

1 string reference to 'apachesolr_attachments_index_action_form_reset_submit'
apachesolr_attachments_index_action_form in ./apachesolr_attachments.admin.inc
Form builder for the Apachesolr Attachments actions form.

File

./apachesolr_attachments.admin.inc, line 154
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_index_action_form_reset_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $env_id = $form_state['values']['env_id'];
  $form_state['redirect'] = array(
    'admin/config/search/apachesolr/attachments/confirm/clear-cache',
    array(
      'query' => $destination,
    ),
  );
}