You are here

function mailchimp_drush_command in Mailchimp 6.2

Same name and namespace in other branches
  1. 8 includes/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()

Implementation of hook_drush_command().

Return value

An associative array of commands.

File

./mailchimp.drush.inc, line 9

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;
}