function cas_user_operations in CAS 7
Same name and namespace in other branches
- 6.3 cas.module \cas_user_operations()
Implements hook_user_operations().
File
- ./
cas.module, line 479 - Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.
Code
function cas_user_operations($form = array(), $form_state = array()) {
$operations['cas_create'] = array(
'label' => t('Create CAS username'),
'callback' => 'cas_user_operations_create_username',
);
$operations['cas_remove'] = array(
'label' => t('Remove CAS usernames'),
'callback' => 'cas_user_operations_remove_usernames',
);
return $operations;
}