You are here

function _drush_ip_backlog_nodes_process_batch in IP address manager 7.2

Batch process: backlog nodes.

1 string reference to '_drush_ip_backlog_nodes_process_batch'
drush_ip_backlog_nodes in ./ip.drush.inc
Drush command: ip backlog comments.

File

./ip.drush.inc, line 203

Code

function _drush_ip_backlog_nodes_process_batch($chunk, $details, &$context) {
  $context['message'] = $details;

  // Make sure to only initialize the results the first time.
  if (!isset($context['results']['success'])) {
    $context['results']['success'] = $context['results']['error'] = 0;
  }
  foreach ($chunk as $item) {
    $success = _drush_ip_backlog_nodes_process_batch_task($item);
    $success ? $context['results']['success']++ : $context['results']['error']++;
  }
}