You are here

function _queue_ui_start_batch in Queue UI 8.2

Helper function to start a batch process

Parameters

$operations:

2 calls to _queue_ui_start_batch()
drush_queue_ui_queue_process in ./queue_ui.drush.inc
Process queue
drush_queue_ui_queue_process_all in ./queue_ui.drush.inc
Process all queues

File

./queue_ui.drush.inc, line 136

Code

function _queue_ui_start_batch($operations) {
  $batch = [
    'operations' => $operations,
  ];

  // Set and configure the batch.
  batch_set($batch);
  $batch =& batch_get();
  $batch['progressive'] = FALSE;

  // Process the batch.
  drush_backend_batch_process();
}