You are here

function xmlsitemap_rebuild_batch_finished in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_rebuild_batch_finished()
  2. 7.2 \xmlsitemap_rebuild_batch_finished()
  3. 2.x xmlsitemap.module \xmlsitemap_rebuild_batch_finished()

Batch callback; sitemap rebuild finished.

1 string reference to 'xmlsitemap_rebuild_batch_finished'
xmlsitemap_rebuild_batch in ./
Batch information callback for rebuilding the sitemap data.


./, line 534
Sitemap generation and rebuilding functions for the xmlsitemap module.


function xmlsitemap_rebuild_batch_finished($success, $results, $operations) {
  if ($success && !variable_get('xmlsitemap_rebuild_needed', FALSE)) {

    // Reset the rebuild flag since it was successful.
    variable_set('xmlsitemap_rebuild_needed', FALSE);
    drupal_set_message(t('The sitemap links were rebuilt.'));
  else {
    drupal_set_message(t('The sitemap links were not successfully rebuilt.'), 'error');