You are here

function scheduler_drush_command in Scheduler 7

Same name and namespace in other branches
  1. 8 scheduler.drush.inc \scheduler_drush_command()
  2. 2.x scheduler.drush.inc \scheduler_drush_command()

Implements hook_drush_command().

File

./scheduler.drush.inc, line 11
Drush commands for Scheduler.

Code

function scheduler_drush_command() {
  $items = array();
  $items['scheduler-cron'] = array(
    'description' => 'Lighweight cron to process the Scheduler module tasks.',
    'core' => array(
      '7',
    ),
    'aliases' => array(
      'sch-cron',
    ),
    'category' => 'scheduler',
    'options' => array(
      'nomsg' => 'to avoid the "cron completed" message being written to the terminal.',
    ),
  );
  return $items;
}