function role_expire_user_delete in Role Expire 2.x
Same name and namespace in other branches
- 8 role_expire.module \role_expire_user_delete()
- 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());
}