function simplenews_help in Simplenews 6
Same name and namespace in other branches
- 8.2 simplenews.module \simplenews_help()
- 8 simplenews.module \simplenews_help()
- 5 simplenews.module \simplenews_help()
- 6.2 simplenews.module \simplenews_help()
- 7.2 simplenews.module \simplenews_help()
- 7 simplenews.module \simplenews_help()
- 3.x simplenews.module \simplenews_help()
Implementation of hook_help().
File
- ./
simplenews.module, line 2266 - Simplnews node handling, sent email, newsletter block and general hooks
Code
function simplenews_help($path, $arg) {
switch ($path) {
case 'admin/help#simplenews':
$help = "<p>" . t('Simplenews publishes and sends newsletters to lists of subscribers. Both anonymous and authenticated users can opt-in to different mailing lists.') . "</p>\n";
$help .= "<p>" . t('Simplenews uses nodes for <strong>newsletter issues</strong>. Newsletter issues are grouped by a <strong>newsletter taxonomy term</strong>. Node type and vocabulary are selectable. A newsletter is send to all email addresses which are subscribed to the newsletter. Newsletter issues can be sent only once. Large mailings should be sent by cron to balance the mailserver load.') . "</p>\n";
$help .= "<p>" . t('Simplenews adds elements to the newsletter node add/edit form to manage newsletter format and sending of the newsletter issue. A newsletter issue can be sent for test before sending officially.') . "</p>\n";
$help .= "<p>" . t('Both anonymous and authenticated users can <strong>opt-in and opt-out</strong> to a newsletter. A confirmation message is sent to anonymous users at subscription and unsubscription. Users can (un)subscribe using a form and a block. A <strong>subscription block</strong> is available for each newsletter offering a subscription form, a link to recent newsletters and RSS feed. Email addresses can also be imported and exported via the subscription administration pages.') . "</p>\n";
$help .= "<h2>" . t('Configuration') . "</h2>\n";
$help .= "<ul>";
if (user_access('administer permissions')) {
$help .= "<li>" . l(t('Configure permissions'), 'admin/user/permissions', array(
'fragment' => 'module-simplenews',
)) . "</li>\n";
}
if (user_access('administer simplenews settings')) {
$help .= "<li>" . l(t('Configure Simplenews'), 'admin/settings/simplenews') . "</li>\n";
}
if (user_access('administer blocks')) {
$help .= "<li>" . t('Enable a newsletter <a href="@admin_blocks">subscription block</a>.', array(
'@admin_blocks' => url('admin/build/block'),
)) . "</li>\n";
}
if (user_access('administer simplenews settings')) {
$help .= "<li>" . t('Manage your <a href="@newsletters">newsletters</a>, <a href="@sent">sent newsletters</a> and <a href="@subscriptions">subscriptions</a>.', array(
'@newsletters' => url('admin/content/simplenews/types'),
'@sent' => url('admin/content/simplenews'),
'@subscriptions' => url('admin/content/simplenews/users'),
)) . "</li>\n";
}
$help .= "</ul>";
$help .= "<p>" . t('For more information, see the online handbook entry for <a href="@handbook">Simplenews</a>.', array(
'@handbook',
'http://drupal.org/node/197057',
)) . "</p>\n";
return $help;
case 'node/add/simplenews':
$help = '<ul>';
$help .= "<li>" . t('Add this newsletter issue to a newsletter by selecting a newsletter from the select list. Send a newsletter or a test newsletter by selecting the appropriate radio button and submitting the node.') . "</li>\n";
if (user_access('administer simplenews settings')) {
$help .= "<li>" . t('Set default send options at <a href="@configuration">Administer > Site configuration > Simplenews > Newsletter</a>.', array(
'@configuration' => url('admin/settings/simplenews/newsletter'),
)) . "</li>\n";
}
if (user_access('administer newsletters')) {
$help .= "<li>" . t('Set newsletter specific options at <a href="@configuration">Administer > Content management > Newsletters > Newsletters</a>.', array(
'@configuration' => url('admin/content/simplenews/types'),
)) . "</li>\n";
}
$help .= "</ul>";
return $help;
case 'admin/settings/simplenews/newsletter':
$help = '<ul>';
$help .= '<li>' . t('These settings are default to all newsletters. Newsletter specific settings can be found at the <a href="@page">newsletter\'s settings page</a>.', array(
'@page' => url('admin/content/simplenews/types'),
)) . "</li>\n";
if (!module_exists('mimemail')) {
$help .= "<li>" . t('Install <a href="@mime_mail_url">Mime Mail</a> to send HTML emails or emails with attachments (both plain text and HTML).', array(
'@mime_mail_url' => 'http://drupal.org/project/mimemail',
)) . "</li>\n";
}
$help .= "</ul>";
return $help;
case 'admin/content/simplenews/types/add':
$help = '<p>' . t('You can create different newsletters (or subjects) to categorize your news (e.g. Cats news, Dogs news, ...).') . "</p>\n";
return $help;
case 'admin/content/node-type/simplenews/display/simplenews':
$help = '<p>' . t("'Plain' display settings apply to the content of emails sent in plain text format. 'HTML' display settings apply to both HTML and plain text alternative content of emails sent in HTML format.") . "</p>\n";
return $help;
}
}