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.
doc_Drupal
2016-10-29 09:17:41
Comments
Leave a Comment

Please login to continue.