You are here

function cas_user_delete in CAS 7

Implement hook_user_delete().

When a CAS user is deleted, we need to clean up the entry in {cas_user}.

File

./cas.module, line 637
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_delete($account) {
  db_delete('cas_user')
    ->condition('uid', $account->uid)
    ->execute();
}