function taxonomy_xml_batch_requeue_more in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 6 taxonomy_xml.module \taxonomy_xml_batch_requeue_more()
- 7 taxonomy_xml.process.inc \taxonomy_xml_batch_requeue_more()
Batch callback action that should happen at the end of each round of processing.
The last thing that happens in a batch 'round' is the next round gets added to the queue.
@ingroup batch_operations
2 string references to 'taxonomy_xml_batch_requeue_more'
- taxonomy_xml_add_term_to_batch_queue in ./
taxonomy_xml.module - Manage batch queues by dividing them into recursive 'rounds'.
- taxonomy_xml_invoke_service_request in ./
taxonomy_xml.module - Make a request on a remote taxonomy server and process the response
File
- ./
taxonomy_xml.module, line 2144 - This module makes it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_batch_requeue_more(&$context) {
if ($new_jobs = taxonomy_xml_add_term_to_batch_queue()) {
$context['message'] = t("Finished one round of imports, but the process found still more to do. Restarting to process a further %remaining_count items.", array(
'%remaining_count' => count($new_jobs['operations']),
));
batch_set($new_jobs);
watchdog('taxonomy_xml', $context['message']);
}
}