You are here

function role_expire_user_delete in Role Expire 2.x

Same name and namespace in other branches
  1. 8 role_expire.module \role_expire_user_delete()
  2. 7 role_expire.module \role_expire_user_delete()

Implements hook_user_delete().

File

./role_expire.module, line 248
Role Expire module.

Code

function role_expire_user_delete($account) {

  // Delete user records.
  \Drupal::service('role_expire.api')
    ->deleteUserRecords($account
    ->id());
}