You are here

function notifications_content_help in Notifications 5

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.module \notifications_content_help()
  2. 6 notifications_content/notifications_content.module \notifications_content_help()
  3. 6.2 notifications_content/notifications_content.module \notifications_content_help()
  4. 6.3 notifications_content/notifications_content.module \notifications_content_help()
  5. 7 notifications_content/notifications_content.module \notifications_content_help()

Implementation of hook_help()

File

notifications_content/notifications_content.module, line 13
Subscriptions to content events

Code

function notifications_content_help($section) {
  if (arg(0) == 'admin' && arg(1) == 'messaging' && arg(2) == 'template' && arg(3) == 'edit' && ($group = arg(4))) {
    switch ($group) {
      case 'notifications-digest-node-nid':
      case 'notifications-digest-node-type':
        $help = '<p>' . t('This is the format for each digest group. A message may consist on one or many of these groups:') . '</p>';
        $help .= '<small><pre>';
        $help .= '' . t('Group subject') . "\n";
        $help .= '- ' . t('Digest line.') . "\n";
        $help .= '- ' . t('Digest line.') . "\n";
        $help .= '-  ...' . "\n";
        $help .= t('Group footer') . "\n";
        $help .= '</pre></small>';
        return $help;
    }
  }
}