function access_grant_form_delete_submit in Access Control Kit 7
Form submission handler for access_grant_form().
Handles the "Delete" button on the grant form.
See also
1 string reference to 'access_grant_form_delete_submit'
- access_grant_form in ./
access_grants.admin.inc - Form constructor for the access grant add/edit form.
File
- ./
access_grants.admin.inc, line 669 - Access grants administrative UI for the access control kit module.
Code
function access_grant_form_delete_submit($form, &$form_state) {
if (isset($_GET['destination'])) {
drupal_get_destination();
unset($_GET['destination']);
}
$grant = $form_state['grant'];
$form_state['redirect'] = 'admin/access/grant/' . $grant->gid . '/delete';
}