You are here

function mostpopular_help in Drupal Most Popular 7

Implement hook_help().

File

./mostpopular.module, line 45
The main file for the Most Popular module.

Code

function mostpopular_help($path, $arg) {
  if ($path == 'admin/help#mostpopular') {
    return t('The Most Popular module retrieves a list of the most popular content on your site through Google Analytics or other services, and provides a block for displaying the most popular content to users.');
  }
  if ($path == 'admin/config/mostpopular/intervals') {
    return '<p>' . t("The interval field for each row must contain a string that can be understood by\n<a href='@strtotime' target='php'>strtotime()</a>.  You must specify each as a\nnegative interval relative to today.", array(
      '@strtotime' => 'http://php.net/manual/en/function.strtotime.php',
    )) . '</p>' . '<p>' . t('To remove an interval, clear both the title and interval values.') . '</p>' . '<p>' . t("If you make changes to the intervals, any custom service throttles you may\nhave set up will be reset to their default values.") . '</p>';
  }
}