You are here

function services_keyauth_admin_keys_delete_confirm_submit in Services 6.2

Same name and namespace in other branches
  1. 7 auth/services_keyauth/services_keyauth.admin.inc \services_keyauth_admin_keys_delete_confirm_submit()

Submit form callback for services_keyauth_admin_keys_delete_confirm().

File

auth/services_keyauth/services_keyauth.admin.inc, line 198
Generate security keys.

Code

function services_keyauth_admin_keys_delete_confirm_submit($form, &$form_state) {
  services_keyauth_admin_keys_delete($form_state['values']['kid']);
  $t_args = array(
    '%key' => $form_state['kid'],
  );
  drupal_set_message(t('The key %key has been deleted.', $t_args));
  watchdog('menu', 'Deleted key %key.', $t_args, WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/build/services/keys';
}