diff --git a/scheduler.module b/scheduler.module index d187a36..62dca4a 100644 --- a/scheduler.module +++ b/scheduler.module @@ -113,33 +113,24 @@ function scheduler_help($section) { $output = ''; switch ($section) { case 'admin/config/content/scheduler': - $output = '
'
- . t('Some scheduler actions are set for each different content type. These are accessed via the admin content type list.',
- array('@link' => url('admin/structure/types'))) . '
'
- . t('The options and settings below are common to all content types.') . '
' . t('Some Scheduler options are set for each different content type, and are accessed via the admin content type list.', array('@link' => url('admin/structure/types'))) . ''; + $output .= t('The options and settings below are common to all content types.') . '
'; break; case 'admin/config/content/scheduler/cron': $base_url = $GLOBALS['base_url']; - $output = '' - . t("When you have set up Drupal's standard crontab job cron.php then Scheduler will be executed during each cron run. " - . "However, if you would like finer granularity to scheduler, but don't want to run Drupal's cron more often then you can use the " - . "lightweight cron handler provided by Scheduler. This is an independent cron job which only runs the scheduler process and does not " - . "execute any cron tasks defined by Drupal core or any other modules.") . '
' - . '' . t("Scheduler's cron is at /scheduler/cron and a sample crontab entry to run scheduler every minute might look like:") . '
' - . '* * * * * wget -q -O /dev/null "' . $base_url . '/scheduler/cron"'
- . '' . t('or') . '
' - . '* * * * * curl -s -o /dev/null "' . $base_url . '/scheduler/cron"' . t("When you have set up Drupal's standard crontab job cron.php then Scheduler will be executed during each cron run. However, if you would like finer granularity to scheduler, but don't want to run Drupal's cron more often then you can use the lightweight cron handler provided by Scheduler. This is an independent cron job which only runs the scheduler process and does not execute any cron tasks defined by Drupal core or any other modules.") . '
'; + $output .= '' . t("Scheduler's cron is at /scheduler/cron and a sample crontab entry to run scheduler every minute might look like:") . '
'; + $output .= '* * * * * wget -q -O /dev/null "' . $base_url . '/scheduler/cron"';
+ $output .= '' . t('or') . '
'; + $output .= '* * * * * curl -s -o /dev/null "' . $base_url . '/scheduler/cron"' - . t('The Scheduler module provides the functionality for automatic publishing and unpublishing of nodes at specified future dates.') - . '
' . '' - . t('You can read more in the readme.txt file.', - array('@readme' => $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'scheduler') . '/README.txt')) - . '
'; + $output = '' . t('The Scheduler module provides the functionality for automatic publishing and unpublishing of nodes at specified future dates.') . '
'; + $output .= '' . t('You can read more in the readme.txt file.', array('@readme' => $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'scheduler') . '/README.txt')) . '
'; break; default: @@ -735,7 +726,7 @@ function scheduler_node_update($node) { } /** - * Implements hook_node_delte(). + * Implements hook_node_delete(). */ function scheduler_node_delete($node) { db_delete('scheduler')->condition('nid', $node->nid)->execute(); @@ -986,7 +977,7 @@ function _scheduler_lightweight_cron() { $form['scheduler_cron'] = array( '#type' => 'submit', '#prefix' => t("You can test Scheduler's lightweight cron process interactively") . ':