Same name and namespace in other branches
  1. 4.6.x modules/tracker.module \tracker_help()
  2. 4.7.x modules/tracker.module \tracker_help()
  3. 5.x modules/tracker/tracker.module \tracker_help()
  4. 6.x modules/tracker/tracker.module \tracker_help()
  5. 7.x modules/tracker/tracker.module \tracker_help()
  6. 8.9.x core/modules/tracker/tracker.module \tracker_help()
  7. 9 core/modules/tracker/tracker.module \tracker_help()

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 = '<h2>' . t('About') . '</h2>';
      $output .= '<p>' . t('The Activity Tracker module displays the most recently added and updated content on your site, and allows you to follow new content created by each user. This module has no configuration options. For more information, see the <a href=":tracker">online documentation for the Activity Tracker module</a>.', [
        ':tracker' => 'https://www.drupal.org/documentation/modules/tracker',
      ]) . '</p>';
      $output .= '<h2>' . t('Uses') . '</h2>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Tracking new and updated site content') . '</dt>';
      $output .= '<dd>' . t('The <a href=":recent">Recent content</a> page shows new and updated content in reverse chronological order, listing the content type, title, author\'s name, number of comments, and time of last update. Content is considered updated when changes occur in the text, or when new comments are added. The <em>My recent content</em> tab limits the list to the currently logged-in user.', [
        ':recent' => Url::fromRoute('tracker.page')
          ->toString(),
      ]) . '</dd>';
      $output .= '<dt>' . t('Tracking user-specific content') . '</dt>';
      $output .= '<dd>' . t("To follow a specific user's new and updated content, select the <em>Activity</em> tab from the user's profile page.") . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}