You are here

function cas_user_operations_remove_usernames in CAS 6.3

Same name and namespace in other branches
  1. 7 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 465
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) {
  foreach ($uids as $uid) {
    db_query("DELETE FROM {cas_user} WHERE uid = %d", $uid);
  }
}