Implements hook_help().
function statistics_help($path, $arg) {
switch ($path) {
case 'admin/help#statistics':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Statistics module shows you how often content is viewed. This is useful in determining which pages of your site are most popular. For more information, see the online handbook entry for the <a href="@statistics">Statistics module</a>.', array(
'@statistics' => url('http://drupal.org/documentation/modules/statistics/'),
)) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Displaying popular content') . '</dt>';
$output .= '<dd>' . t('The module includes a <em>Popular content</em> block that displays the most viewed pages today and for all time, and the last content viewed. To use the block, enable <em>Count content views</em> on the <a href="@statistics-settings">statistics settings page</a>, and then you can enable and configure the block on the <a href="@blocks">blocks administration page</a>.', array(
'@statistics-settings' => url('admin/config/system/statistics'),
'@blocks' => url('admin/structure/block'),
)) . '</dd>';
$output .= '<dt>' . t('Page view counter') . '</dt>';
$output .= '<dd>' . t('The Statistics module includes a counter for each page that increases whenever the page is viewed. To use the counter, enable <em>Count content views</em> on the <a href="@statistics-settings">statistics settings page</a>, and set the necessary <a href="@permissions">permissions</a> (<em>View content hits</em>) so that the counter is visible to the users.', array(
'@statistics-settings' => url('admin/config/system/statistics'),
'@permissions' => url('admin/people/permissions', array(
'fragment' => 'module-statistics',
)),
)) . '</dd>';
$output .= '</dl>';
return $output;
case 'admin/config/system/statistics':
return '<p>' . t('Settings for the statistical information that Drupal will keep about the site. See <a href="@statistics">site statistics</a> for the actual information.', array(
'@statistics' => url('admin/reports/hits'),
)) . '</p>';
}
}