function access_scheme_delete_confirm_submit in Access Control Kit 7
Form submission handler for access_scheme_delete_confirm().
File
- ./
access_schemes.admin.inc, line 502 - Access schemes administrative UI for the access control kit module.
Code
function access_scheme_delete_confirm_submit($form, &$form_state) {
$scheme = $form_state['scheme'];
access_scheme_delete($scheme->sid);
// Report the change.
$t_args = array(
'%scheme' => $scheme->name,
);
drupal_set_message(t('Deleted access scheme %scheme.', $t_args));
watchdog('access', 'Deleted access scheme %scheme.', $t_args, WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/structure/access';
// Rebuild the menu so that the "add access grant" page is up to date.
menu_rebuild();
}