function taxonomy_xml_batch_requeue_more in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.module \taxonomy_xml_batch_requeue_more()
- 6 taxonomy_xml.module \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
3 string references to 'taxonomy_xml_batch_requeue_more'
- taxonomy_xml_add_term_to_batch_queue in ./
taxonomy_xml.process.inc - Manage batch queues by dividing them into recursive 'rounds'.
- taxonomy_xml_invoke_service_request in ./
taxonomy_xml.process.inc - Make a request on a remote taxonomy server and process the response
- url_taxonomy_service_form_submit in services/
url.taxonomy_service.inc - What to do when loading from this service
File
- ./
taxonomy_xml.process.inc, line 1110 - The workhorse processes for importing taxonomies.
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']);
}
}