function xmlsitemap_batch_operations_finished in XML sitemap 6
Batch callback called when the batch operations are completed.
1 string reference to 'xmlsitemap_batch_operations_finished'
- _xmlsitemap_node_priority_operations in xmlsitemap_node/
xmlsitemap_node.module - Node operations callback.
File
- ./
xmlsitemap.module, line 212 - Creates a sitemap compatible with the sitemaps.org schema.
Code
function xmlsitemap_batch_operations_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(t('The update has been performed.'));
}
else {
drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
$message = format_plural($count = count($results), '1 item successfully processed.', '@count items successfully processed.');
if ($count) {
$message .= theme('item_list', $results, t('Last items successfully processed:'));
}
drupal_set_message($message);
}
}