You are here

function mailchimp_drush_command in Mailchimp 8

Same name and namespace in other branches
  1. 6.2 mailchimp.drush.inc \mailchimp_drush_command()
  2. 7.5 includes/mailchimp.drush.inc \mailchimp_drush_command()
  3. 7 mailchimp.drush.inc \mailchimp_drush_command()
  4. 7.2 includes/mailchimp.drush.inc \mailchimp_drush_command()
  5. 7.3 includes/mailchimp.drush.inc \mailchimp_drush_command()
  6. 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;
}