W3cubDocs

/Drupal 8

function history_help

history_help($route_name, RouteMatchInterface $route_match)

Implements hook_help().

File

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

Code

function history_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.history':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The History module keeps track of which content a user has read. It marks content as <em>new</em> or <em>updated</em> depending on the last time the user viewed it. History records that are older than one month are removed during cron, which means that content older than one month is always considered <em>read</em>. The History module does not have a user interface but it provides a filter to <a href=":views-help">Views</a> to show new or updated content. For more information, see the <a href=":url">online documentation for the History module</a>.', array(':views-help' => (\Drupal::moduleHandler()->moduleExists('views')) ? \Drupal::url('help.page', array('name' => 'views')) : '#', ':url' => 'https://www.drupal.org/documentation/modules/history')) . '</p>';
      return $output;
  }
}

© 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/function/history_help/8.1.x