function notifications_content_help in Notifications 6
Same name and namespace in other branches
- 5 notifications_content/notifications_content.module \notifications_content_help()
- 6.4 notifications_content/notifications_content.module \notifications_content_help()
- 6.2 notifications_content/notifications_content.module \notifications_content_help()
- 6.3 notifications_content/notifications_content.module \notifications_content_help()
- 7 notifications_content/notifications_content.module \notifications_content_help()
Implementation of hook_help()
File
- notifications_content/
notifications_content.module, line 78 - Subscriptions to content events
Code
function notifications_content_help($path, $arg) {
if ($path == 'admin/messaging/notifications/content') {
$output .= '<p>' . t('To determine the available subscription types for each content type you can also use the !content-type-settings', array(
'!content-type-settings' => l(t('content types settings page'), 'admin/content/types'),
)) . '</p>';
return $output;
}
elseif (array(
$arg[0],
$arg[1],
$arg[2],
$arg[3],
) == array(
'admin',
'messaging',
'template',
'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 title') . "\n";
$help .= '- ' . t('Digest line.') . "\n";
$help .= '- ' . t('Digest line.') . "\n";
$help .= '- ...' . "\n";
$help .= t('Group footer') . "\n";
$help .= '</pre></small>';
return $help;
}
}
}