You are here

function encrypt_config_delete_confirm_submit in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 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 408
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;
}