function mailchimp_drush_command in Mailchimp 8
Same name and namespace in other branches
- 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()
- 7.4 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 = [];
$items['mailchimp-cron'] = [
'callback' => '_mailchimp_cron_batch',
'description' => "Trigger Mailchimp cron task",
'examples' => [
'drush mailchimp-cron 5000' => 'Run Mailchimp cron with a batch size of 5000.',
'drush mailchimp-cron' => 'Run a Mailchimp cron task.',
],
];
return $items;
}