You are here

function notify_help in Notify 2.0.x

Same name and namespace in other branches
  1. 8 notify.module \notify_help()
  2. 5.2 notify.module \notify_help()
  3. 5 notify.module \notify_help()
  4. 6 notify.module \notify_help()
  5. 7 notify.module \notify_help()
  6. 1.0.x notify.module \notify_help()

Implements hook_help().

File

./notify.module, line 40
Hooks for Notify module.

Code

function notify_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.notify':
      $output = '<p>' . t('The <strong>Notify</strong> project allows users to subscribe to periodic e-mails which include all new or revised content and/or comments much like the daily news letters sent by some websites.  Even if this feature is not configured for normal site users, it can be a useful feature for an administrator of a site to monitor content submissions and comment posts.') . '</p>';
      $output .= '<p>' . t('The administrator sets the frequency of the e-mails in the notify administration interface. They can also set how many e-mail failures should occur before notify stops sending notifications.  Note that cron must be enabled for notifications to be sent out.') . '</p>';
      $output .= '<p>' . t('For more information please read the <a href=":url"><strong>Notify</strong></a> documentation page.', [
        ':url' => Url::fromUri('https://www.drupal.org/docs/7/modules/notify')
          ->toString(),
      ]) . '</p>';
      return $output;
  }
}