You are here

function externalauth_user_delete in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x externalauth.module \externalauth_user_delete()

Implements hook_user_delete().

File

./externalauth.module, line 29
Contains externalauth.module.

Code

function externalauth_user_delete($account) {

  // Delete authmap entries when a user gets deleted.
  $authmap = \Drupal::service('externalauth.authmap');
  $authmap
    ->delete($account
    ->id());
}