You are here

function cas_user_add in CAS 7

Same name and namespace in other branches
  1. 6.3 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 36
User page callbacks for the cas module.

Code

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