You are here

function cas_user_operations_remove_usernames in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.module \cas_user_operations_remove_usernames()

Callback function to remove CAS usernames from the account.

Parameters

$uids: An array of user ids. For each account, all CAS usernames are removed.

See also

cas_user_operations()

1 string reference to 'cas_user_operations_remove_usernames'
cas_user_operations in ./cas.module
Implements hook_user_operations().

File

./cas.module, line 526
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_remove_usernames($uids) {
  db_delete('cas_user')
    ->condition('uid', $uids, 'IN')
    ->execute();
}