You are here

function openid_connect_authmap_delete in OpenID Connect / OAuth client 7

Deletes a user's authmap entries.

2 calls to openid_connect_authmap_delete()
openid_connect_user_cancel in ./openid_connect.module
Implements hook_user_cancel().
openid_connect_user_delete in ./openid_connect.module
Implements hook_user_delete().

File

./openid_connect.module, line 445
A pluggable client implementation for the OpenID Connect protocol.

Code

function openid_connect_authmap_delete($uid) {
  db_delete('authmap')
    ->condition('uid', $uid)
    ->condition('module', db_like('openid_connect_') . '%', 'LIKE')
    ->execute();
}