You are here

function cas_user_delete_form in CAS 6.3

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

Menu callback; Delete the specified CAS username from the system.

1 string reference to 'cas_user_delete_form'
cas_menu in ./cas.module
Implementation of hook_menu().

File

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

Code

function cas_user_delete_form($form_state, $account, $aid = 0) {
  $form = array();
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );
  return confirm_form($form, t('Are you sure you want to delete the CAS username %cas_name for %user?', array(
    '%cas_name' => $account->cas_names[$aid],
    '%user' => $account->name,
  )), 'user/' . $account->uid . '/cas');
}