You are here

function queue_mail_drush_command in Queue Mail 7

Implements hook_drush_command().

File

./queue_mail.drush.inc, line 11
Drush integration for the Queue Mail module.

Code

function queue_mail_drush_command() {
  $items = array();
  $items['queue-mail-send-all'] = array(
    'description' => "Send all remaining queued emails.",
    'options' => array(
      'timeout' => array(
        'description' => 'The maximum amount of time to spend sending emails, defaults to 0, which means: keep going until all queued emails are sent.',
        'example-value' => 60,
        'value' => 'optional',
      ),
    ),
    'drupal dependencies' => array(
      'queue_mail',
    ),
  );
  return $items;
}