function encrypt_config_delete_confirm_submit in Encrypt 7.2
Same name and namespace in other branches
- 7.3 includes/encrypt.admin.inc \encrypt_config_delete_confirm_submit()
Submit handler for encrypt_config_delete_confirm.
See also
encrypt_config_delete_confirm()
File
- includes/
encrypt.admin.inc, line 426 - This file holds the functions for the Encrypt admin settings.
Code
function encrypt_config_delete_confirm_submit($form, &$form_state) {
db_delete('encrypt_config')
->condition('name', $form_state['values']['name'])
->execute();
$t_args = array(
'%label' => $form_state['values']['label'],
);
drupal_set_message(t('The configuration %label has been deleted.', $t_args));
watchdog('encrypt', 'Deleted encryption configuration %label.', $t_args, WATCHDOG_NOTICE);
$form_state['redirect'] = ENCRYPT_MENU_PATH;
}