function cas_add_user_form in CAS 7
Same name and namespace in other branches
- 6.3 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 - Implements 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' => 'textarea',
'#title' => t('CAS username(s)'),
'#required' => TRUE,
'#default_value' => '',
'#description' => t('Enter a single username, or multiple usernames, one per line. Registration will proceed as if the user(s) with the specified CAS username just logged in.'),
'#element_validate' => array(
'_cas_name_element_validate',
),
'#weight' => -10,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Create new account(s)'),
);
return $form;
}