function history_user_delete

Same name and namespace in other branches
  1. 9 core/modules/history/history.module \history_user_delete()
  2. 8.9.x core/modules/history/history.module \history_user_delete()
  3. 10 core/modules/history/history.module \history_user_delete()

Implements hook_ENTITY_TYPE_delete() for user entities.

File

core/modules/history/history.module, line 181

Code

function history_user_delete($account) {
    \Drupal::database()->delete('history')
        ->condition('uid', $account->id())
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.