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;
  }
}
doc_Drupal
2016-10-29 09:17:43
Comments
Leave a Comment

Please login to continue.