You are here

function role_expire_user_cancel in Role Expire 8

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

Implements hook_user_cancel().

File

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

Code

function role_expire_user_cancel($edit, $account, $method) {

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