You are here

function key_ui_key_config_delete_confirm_submit in Key 7

Submit handler for key_ui_config_delete_confirm.

File

modules/key_ui/includes/key_ui.admin.inc, line 291
Administrative functionality for managing key configurations.

Code

function key_ui_key_config_delete_confirm_submit($form, &$form_state) {
  db_delete('key_config')
    ->condition('name', $form_state['values']['name'])
    ->execute();
  $t_args = array(
    '%label' => $form_state['values']['label'],
  );
  drupal_set_message(t('The key %label has been deleted.', $t_args));
  watchdog('key', 'Deleted key %label.', $t_args, WATCHDOG_NOTICE);
  $form_state['redirect'] = KEY_MENU_PATH;
}