function mailchimp_drush_command in Mailchimp 7.4
Same name and namespace in other branches
- 8 includes/mailchimp.drush.inc \mailchimp_drush_command()
- 6.2 mailchimp.drush.inc \mailchimp_drush_command()
- 7.5 includes/mailchimp.drush.inc \mailchimp_drush_command()
- 7 mailchimp.drush.inc \mailchimp_drush_command()
- 7.2 includes/mailchimp.drush.inc \mailchimp_drush_command()
- 7.3 includes/mailchimp.drush.inc \mailchimp_drush_command()
Implements hook_drush_command().
File
- includes/
mailchimp.drush.inc, line 11 - Mailchimp module Drush integration
Code
function mailchimp_drush_command() {
$items = array();
$items['mailchimp-cron'] = array(
'callback' => '_mailchimp_cron_batch',
'description' => "Trigger Mailchimp cron task",
'examples' => array(
'drush mailchimp-cron 5000' => 'Run Mailchimp cron with a batch size of 5000.',
'drush mailchimp-cron' => 'Run a Mailchimp cron task.',
),
);
return $items;
}