You are here

function apachesolr_index_action_form_delete_submit in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.admin.inc \apachesolr_index_action_form_delete_submit()
  2. 6.3 apachesolr.admin.inc \apachesolr_index_action_form_delete_submit()

Submit handler for the Indexer actions form, delete button.

_state

Parameters

array $form:

1 string reference to 'apachesolr_index_action_form_delete_submit'
apachesolr_index_action_form in ./apachesolr.admin.inc
Form builder for the Apachesolr Indexer actions form.

File

./apachesolr.admin.inc, line 957
Administrative pages for the Apache Solr framework.

Code

function apachesolr_index_action_form_delete_submit(array $form, array &$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/settings/' . $env_id . '/index/delete',
    array(
      'query' => $destination,
    ),
  );
}