You are here

function campaignmonitor_local_queue in Campaign Monitor 8

1 call to campaignmonitor_local_queue()
campaignmonitor_local_queue_subscriptions in modules/campaignmonitor_local/campaignmonitor_local.module
Queue all active users ready for processing.

File

modules/campaignmonitor_local/campaignmonitor_local.module, line 28
Campaignmonitor Local core functions.

Code

function campaignmonitor_local_queue($uid, $mail) {
  $data['uid'] = $uid;
  $data['mail'] = $mail;
  $queue = \Drupal::queue('campaignmonitor_local_subscriptions');
  $queue
    ->createQueue();
  $queue
    ->createItem($data);
}