You are here

function apachesolr_environment_delete_form_submit in Apache Solr Search 8

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

Submit handler for the delete form

_state

Parameters

array $form:

File

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

Code

function apachesolr_environment_delete_form_submit(array $form, array &$form_state) {
  if (apachesolr_environment_delete($form_state['values']['env_id'])) {
    drupal_set_message(t('The search environment was deleted'));
  }
  $form_state['redirect'] = 'admin/config/search/apachesolr/settings';
}