You are here

function cas_user_add in CAS 6.3

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

Form builder; Add a CAS identity.

See also

cas_user_add_validate()

1 string reference to 'cas_user_add'
cas_user_identities in ./cas.pages.inc
Menu callback; Manage CAS identities for the specified user.

File

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

Code

function cas_user_add($form_state, $account) {
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );
  $form['cas_name'] = array(
    '#type' => 'textfield',
    '#title' => t('CAS username'),
    '#element_validate' => array(
      '_cas_name_element_validate',
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add a CAS username'),
  );
  return $form;
}