function role_expire_user_delete in Role Expire 8
Same name and namespace in other branches
- 7 role_expire.module \role_expire_user_delete()
- 2.x role_expire.module \role_expire_user_delete()
Implements hook_user_delete().
File
- ./
role_expire.module, line 245 - Role Expire module.
Code
function role_expire_user_delete($account) {
// Delete user records.
\Drupal::service('role_expire.api')
->deleteUserRecords($account
->id());
}