W3cubDocs

/Drupal 8

history.module

Records which users have read which content.

@todo

File

core/modules/history/history.module

Functions

Name Description
history_attach_timestamp #lazy_builder callback; attaches the last read timestamp for a node.
history_cron Implements hook_cron().
history_help Implements hook_help().
history_node_delete Implements hook_ENTITY_TYPE_delete() for node entities.
history_node_view_alter Implements hook_ENTITY_TYPE_view_alter() for node entities.
history_read Retrieves the timestamp for the current user's last view of a specified node.
history_read_multiple Retrieves the last viewed timestamp for each of the passed node IDs.
history_user_cancel Implements hook_user_cancel().
history_user_delete Implements hook_ENTITY_TYPE_delete() for user entities.
history_write Updates 'last viewed' timestamp of the specified entity for the current user.

Constants

Name Description
HISTORY_READ_LIMIT Entities changed before this time are always shown as read.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!history!history.module/8.1.x