function simplenews_drush_command in Simplenews 7
Same name and namespace in other branches
- 8.2 simplenews.drush.inc \simplenews_drush_command()
- 8 simplenews.drush.inc \simplenews_drush_command()
- 7.2 simplenews.drush.inc \simplenews_drush_command()
- 3.x simplenews.drush.inc \simplenews_drush_command()
Implements hook_drush_command().
File
- ./
simplenews.drush.inc, line 11 - Drush commands for administer Simplenews.
Code
function simplenews_drush_command() {
$items = array();
$items['simplenews-spool-count'] = array(
'description' => 'Print the current simplenews mail spool count',
'aliases' => array(
'sn-sc',
),
'drupal dependencies' => array(
'simplenews',
),
'options' => array(
'pipe' => dt('Just print the count value to allow parsing'),
),
);
$items['simplenews-spool-send'] = array(
'description' => 'Send the defined amount of mail spool entries.',
'examples' => array(
'drush sn-ss' => dt('Send the default amount of mails, as defined by the simplenews_throttle variable.'),
'drush sn-ss 0' => dt('Send all mails.'),
'drush sn-ss 100' => dt('Send 100 mails'),
),
'options' => array(
'pipe' => dt('Just print the sent and remaining count on separate lines to allow parsing'),
),
'aliases' => array(
'sn-ss',
),
'drupal dependencies' => array(
'simplenews',
),
);
return $items;
}