You are here

function campaignmonitor_local_batch in Campaign Monitor 8

1 string reference to 'campaignmonitor_local_batch'
CampaignMonitorLocalBatchController::content in modules/campaignmonitor_local/src/Controller/CampaignMonitorLocalBatchController.php

File

modules/campaignmonitor_local/campaignmonitor_local.batch.inc, line 12
.

Code

function campaignmonitor_local_batch($type, &$context) {
  if (empty($context['sandbox'])) {
    $context['sandbox']['progress'] = 0;
    $context['sandbox']['current_id'] = 0;
  }
  switch ($type) {
    case 'subscription_queue':
      campaignmonitor_local_subscription_queue($context);
      break;
    default:
      $message = 'migrating something else...';
      break;
  }
}