function _drush_ip_backlog_comments_process_batch in IP address manager 7.2
Batch process: backlog comments.
1 string reference to '_drush_ip_backlog_comments_process_batch'
- drush_ip_backlog_comments in ./
ip.drush.inc - Drush command: ip backlog comments.
File
- ./
ip.drush.inc, line 99
Code
function _drush_ip_backlog_comments_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_comments_process_batch_task($item);
$success ? $context['results']['success']++ : $context['results']['error']++;
}
}