function apachesolr_environment_delete_form_submit in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.admin.inc \apachesolr_environment_delete_form_submit()
- 7 apachesolr.admin.inc \apachesolr_environment_delete_form_submit()
File
- ./
apachesolr.admin.inc, line 35 - Administrative pages for the Apache Solr framework.
Code
function apachesolr_environment_delete_form_submit($form, &$form_state) {
if (apachesolr_environment_delete($form_state['values']['env_id'])) {
drupal_set_message(t('The search environment was deleted'));
}
// Regardlessly of the destination parameter we want to go to another page
unset($_GET['destination']);
$form_state['redirect'] = 'admin/settings/apachesolr/settings';
}