function mcd_help in Maintenance Countdown 7
Implements hook_help().
File
- ./
mcd.module, line 16 - mcd.module
Code
function mcd_help($path, $arg) {
// Care about lang prefix
$lang = (array) $GLOBALS['language'];
if ($lang['prefix']) {
$base_url = $GLOBALS['base_url'] . '/' . $lang['prefix'];
}
else {
$base_url = $GLOBALS['base_url'];
}
// Help starts here
$output = '';
switch ($path) {
case "admin/help#mcd":
$output .= '<h3>' . t('Setting up MCD') . '</h3>';
$output .= '<p>' . t('After enabling MCD module goto !url page,
set time for maintenance and switch site off. Choose other additional options.
After you done your maintenance works, go back and turn your site on-line.', array(
'!url' => l(t('Maintenance mode'), $base_url . '/admin/config/development/maintenance'),
)) . '</p>';
$output .= '<h3>' . t('Simplenews integration') . '</h3>';
$output .= '<p>' . t('If you want enable visitors to subscribe on your
news by email (only email), install !simplenews module.', array(
'!simplenews' => l('Simplenews', 'http://drupal.org/project/simplenews'),
)) . '</p>';
$output .= '<p>' . t('NOTE: While site is off your subscribers will able read your new by email ONLY.') . '</p>';
$output .= '<p>' . t("After you enable Simplenews module, you need to create your website launch category or use default one. Edit:\n <ul>\n \t<li><strong>Select:</strong> @method → @method_select (because this\n method don't require confirmation email pages which will be never shown while your site is off-line)</li>\n <li><strong>Check:</strong> @subsblock (that's all about it)</li>\n </ul></p><p>\n Then, go to maintenance page and select subscription form category, to\n be shown. Switch website offline.", array(
'@method' => t('Opt-in/out method'),
'@method_select' => t('Single'),
'@subsblock' => t('Subscription block'),
)) . '</p>';
$output .= '<h4>' . t('Create a newsletter') . '</h4>';
$output .= '<p>' . t('After switching the site online, go to "@newsltr"
tab of your newsletter node and send the newsletter to your subscribers
manually.', array(
'@newsltr' => t('Newsletter'),
)) . '</p>';
$output .= '<p>' . 'to be continued / продолжение следует / à poursuivre / se continuó / fortgesetzt werden' . '</p>';
break;
}
return $output;
}