From ab6961d0d8ce388c933dc50808584ad55e6f170a Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Fri, 27 Sep 2013 14:30:25 +0200 Subject: [PATCH] Issue #2029767 by batigolix, kscheirer: Create hook_help() for history module. --- core/modules/history/history.module | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/modules/history/history.module b/core/modules/history/history.module index e40c44c1fa90..25c75cb46f83 100644 --- a/core/modules/history/history.module +++ b/core/modules/history/history.module @@ -19,6 +19,18 @@ */ define('HISTORY_READ_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60); +/** + * Implements hook_help(). + */ +function history_help($path, $arg) { + switch ($path) { + case 'admin/help#history': + $output = '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('The History module keeps track of which content a user has read. Its data is available through the Views module. The History module marks content as <em>new</em> or <em>updated</em> depending on the last time the user viewed that content. It also provides a filter to Views to show new or updated content. History records older than one month will be removed during cron. This means that content older than one month will always be considered <em>read</em>. The module does not provide a user interface For more information, see the online handbook entry for the <a href="@url">History module</a>.', array('@url' => 'https://drupal.org/documentation/modules/history')) . '</p>'; + return $output; + } +} + /** * Retrieves the timestamp for the current user's last view of a specified node. * -- GitLab