You are here

function openid_connect_user_cancel in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 7 openid_connect.module \openid_connect_user_cancel()
  2. 2.x openid_connect.module \openid_connect_user_cancel()

Implements hook_user_cancel().

File

./openid_connect.module, line 77
Hook implementations of the OpenID Connect module.

Code

function openid_connect_user_cancel($edit, $account, $method) {
  $authmap = \Drupal::service('openid_connect.authmap');
  $authmap
    ->deleteAssociation($account
    ->id());
}