You are here

function cas_add_user_form in CAS 6.3

Same name and namespace in other branches
  1. 7 cas.user.inc \cas_add_user_form()

Creates a CAS user registration page.

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

File

./cas.user.inc, line 11
Provides CAS user registration administrative pages.

Code

function cas_add_user_form() {
  $form = array();
  $form['account']['cas_name'] = array(
    '#type' => 'textfield',
    '#title' => t('CAS username'),
    '#required' => TRUE,
    '#default_value' => '',
    '#description' => t('Registration will proceed as if the user with the specified CAS username just logged in.'),
    '#element_validate' => array(
      '_cas_name_element_validate',
    ),
    '#weight' => -10,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create new account'),
  );
  return $form;
}