function _batch_populate_queue


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 _batch_populate_queue(&$batch, $set_id)
cle7 _batch_populate_queue(&$batch, $set_id)
elmsmedia7 _batch_populate_queue(&$batch, $set_id)
icor7 _batch_populate_queue(&$batch, $set_id)
meedjum_blog7 _batch_populate_queue(&$batch, $set_id)
mooc7 _batch_populate_queue(&$batch, $set_id)

Populates a job queue with the operations of a batch set.

Depending on whether the batch is progressive or not, the BatchQueue or BatchMemoryQueue handler classes will be used.


$batch: The batch array.

$set_id: The id of the set to process.

Return value

The name and class of the queue are added by reference to the batch set.

Related topics

2 calls to _batch_populate_queue()
batch_process in includes/
Processes the batch.
batch_set in includes/
Adds a new batch.


includes/, line 4599
Functions for form and batch generation and processing.


function _batch_populate_queue(&$batch, $set_id) {
  $batch_set = &$batch['sets'][$set_id];

  if (isset($batch_set['operations'])) {
    $batch_set += array(
      'queue' => array(
        'name' => 'drupal_batch:' . $batch['id'] . ':' . $set_id,
        'class' => $batch['progressive'] ? 'BatchQueue' : 'BatchMemoryQueue',

    $queue = _batch_queue($batch_set);
    foreach ($batch_set['operations'] as $operation) {