Skip to content
Snippets Groups Projects
Commit ab6961d0 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2029767 by batigolix, kscheirer: Create hook_help() for history module.

parent a0cb0b79
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment