history_user_cancel

history_user_cancel($edit, $account, $method)

Implements hook_user_cancel().

File

core/modules/history/history.module, line 162
Records which users have read which content.

Code

1
2
3
4
5
6
7
8
9
function history_user_cancel($edit, $account, $method) {
  switch ($method) {
    case 'user_cancel_reassign':
      db_delete('history')
        ->condition('uid', $account->id())
        ->execute();
      break;
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.