You are here

function cas_user_delete_form_submit in CAS 6.3

Same name and namespace in other branches
  1. 7 cas.pages.inc \cas_user_delete_form_submit()

File

./cas.pages.inc, line 67
User page callbacks for the cas module.

Code

function cas_user_delete_form_submit($form, &$form_state) {
  $query = db_query("DELETE FROM {cas_user} WHERE uid = %d AND aid = %d", $form_state['values']['uid'], $form_state['values']['aid']);
  if ($query) {
    drupal_set_message(t('CAS username deleted.'));
  }
  $form_state['redirect'] = 'user/' . $form_state['values']['uid'] . '/cas';
}