You are here

function _mailchimp_cron_batch in Mailchimp 7

Same name and namespace in other branches
  1. 8 includes/mailchimp.drush.inc \_mailchimp_cron_batch()
  2. 6.2 mailchimp.drush.inc \_mailchimp_cron_batch()
  3. 7.5 includes/mailchimp.drush.inc \_mailchimp_cron_batch()
  4. 7.2 includes/mailchimp.drush.inc \_mailchimp_cron_batch()
  5. 7.3 includes/mailchimp.drush.inc \_mailchimp_cron_batch()
  6. 7.4 includes/mailchimp.drush.inc \_mailchimp_cron_batch()
1 string reference to '_mailchimp_cron_batch'
mailchimp_drush_command in ./mailchimp.drush.inc
Implements hook_drush_command().

File

./mailchimp.drush.inc, line 29
Mailchimp module Drush integration

Code

function _mailchimp_cron_batch($temp_batchsize = NULL) {
  if (!is_null($temp_batchsize)) {
    $stored_batchsize = variable_get('mailchimp_batch_limit', 100);
    variable_set('mailchimp_batch_limit', $temp_batchsize);
  }
  mailchimp_cron();
  if (!is_null($batchsize)) {
    variable_set('mailchimp_batch_limit', $stored_batchsize);
  }
}