tracker_node_predelete

tracker_node_predelete(EntityInterface $node, $arg = 0) Implements hook_ENTITY_TYPE_predelete() for node entities. Deletes tracking information for a node. File core/modules/tracker/tracker.module, line 191 Tracks recent content posted by a user or users. Code function tracker_node_predelete(EntityInterface $node, $arg = 0) { db_delete('tracker_node') ->condition('nid', $node->id()) ->execute(); db_delete('tracker_user') ->condition('nid', $node->id()) ->

tracker_node_insert

tracker_node_insert(NodeInterface $node, $arg = 0) Implements hook_ENTITY_TYPE_insert() for node entities. Adds new tracking information for this node since it's new. File core/modules/tracker/tracker.module, line 173 Tracks recent content posted by a user or users. Code function tracker_node_insert(NodeInterface $node, $arg = 0) { _tracker_add($node->id(), $node->getOwnerId(), $node->getChangedTime()); }

tracker_install

tracker_install() Implements hook_install(). File core/modules/tracker/tracker.install, line 18 Install, update, and uninstall functions for tracker.module. Code function tracker_install() { $max_nid = db_query('SELECT MAX(nid) FROM {node}')->fetchField(); if ($max_nid != 0) { \Drupal::state()->set('tracker.index_nid', $max_nid); // To avoid timing out while attempting to do a complete indexing, we // simply call our cron job to remove stale records and begin the process

tracker_help

tracker_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/tracker/tracker.module, line 18 Tracks recent content posted by a user or users. Code function tracker_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.tracker': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Activity Tracker module displays the most recently added and updated content on your s

tracker_cron

tracker_cron() Implements hook_cron(). Updates tracking information for any items still to be tracked. The state 'tracker.index_nid' is set to ((the last node ID that was indexed) - 1) and used to select the nodes to be processed. If there are no remaining nodes to process, 'tracker.index_nid' will be 0. This process does not run regularly on live sites, rather it updates tracking info once on an existing site just after the tracker module was installed. File core/modules/tracker/tracker.module

tracker_comment_update

tracker_comment_update(CommentInterface $comment) Implements hook_ENTITY_TYPE_update() for comment entities. File core/modules/tracker/tracker.module, line 203 Tracks recent content posted by a user or users. Code function tracker_comment_update(CommentInterface $comment) { if ($comment->getCommentedEntityTypeId() == 'node') { if ($comment->isPublished()) { _tracker_add($comment->getCommentedEntityId(), $comment->getOwnerId(), $comment->getChangedTime()); }

tracker_comment_insert

tracker_comment_insert(CommentInterface $comment) Implements hook_ENTITY_TYPE_insert() for comment entities. File core/modules/tracker/tracker.module, line 217 Tracks recent content posted by a user or users. Code function tracker_comment_insert(CommentInterface $comment) { if ($comment->getCommentedEntityTypeId() == 'node' && $comment->isPublished()) { _tracker_add($comment->getCommentedEntityId(), $comment->getOwnerId(), $comment->getChangedTime()); } }

tracker_comment_delete

tracker_comment_delete(CommentInterface $comment) Implements hook_ENTITY_TYPE_delete() for comment entities. File core/modules/tracker/tracker.module, line 226 Tracks recent content posted by a user or users. Code function tracker_comment_delete(CommentInterface $comment) { if ($comment->getCommentedEntityTypeId() == 'node') { _tracker_remove($comment->getCommentedEntityId(), $comment->getOwnerId(), $comment->getChangedTime()); } }

tracker.module

Tracks recent content posted by a user or users. File core/modules/tracker/tracker.module Functions Name Description tracker_comment_delete Implements hook_ENTITY_TYPE_delete() for comment entities. tracker_comment_insert Implements hook_ENTITY_TYPE_insert() for comment entities. tracker_comment_update Implements hook_ENTITY_TYPE_update() for comment entities. tracker_cron Implements hook_cron(). tracker_help Implements hook_help(). tracker_node_insert Implements h

tracker.install

Install, update, and uninstall functions for tracker.module. File core/modules/tracker/tracker.install Functions Name Description tracker_install Implements hook_install(). tracker_schema Implements hook_schema(). tracker_uninstall Implements hook_uninstall().