history_node_delete

history_node_delete(EntityInterface $node)

Implements hook_ENTITY_TYPE_delete() for node entities.

File

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

Code

function history_node_delete(EntityInterface $node) {
  db_delete('history')
    ->condition('nid', $node->id())
    ->execute();
}
doc_Drupal
2016-10-29 09:17:43
Comments
Leave a Comment

Please login to continue.