function access_scheme_form_delete_submit in Access Control Kit 7
Form submission handler for access_scheme_form().
Handles the "Delete access scheme" button on the scheme form.
See also
1 string reference to 'access_scheme_form_delete_submit'
- access_scheme_form in ./
access_schemes.admin.inc - Form constructor for the access scheme add/edit form.
File
- ./
access_schemes.admin.inc, line 465 - Access schemes administrative UI for the access control kit module.
Code
function access_scheme_form_delete_submit($form, &$form_state) {
if (isset($_GET['destination'])) {
drupal_get_destination();
unset($_GET['destination']);
}
$scheme = $form_state['scheme'];
$form_state['redirect'] = 'admin/structure/access/' . str_replace('_', '-', $scheme->machine_name) . '/delete';
}