Commit e47457f5 authored by jamesgrobertson's avatar jamesgrobertson Committed by pifagor

Issue #2930844 by jamesgrobertson, pifagor, Elijah Lynn: Create a hook to respond to regeneration

parent 9dd6fc80
...@@ -127,6 +127,12 @@ function hook_xmlsitemap_rebuild_clear(array $types, $save_custom) { ...@@ -127,6 +127,12 @@ function hook_xmlsitemap_rebuild_clear(array $types, $save_custom) {
->execute(); ->execute();
} }
/**
* Respond to XML sitemap regeneration.
*/
function hook_xmlsitemap_regenerate_finished() {
}
/** /**
* Index links for the XML sitemaps. * Index links for the XML sitemaps.
*/ */
......
...@@ -392,6 +392,7 @@ function xmlsitemap_regenerate_batch_finished($success, $results, $operations, $ ...@@ -392,6 +392,7 @@ function xmlsitemap_regenerate_batch_finished($success, $results, $operations, $
), ),
WATCHDOG_NOTICE WATCHDOG_NOTICE
); );
module_invoke_all('xmlsitemap_regenerate_finished');
} }
else { else {
drupal_set_message(t('The sitemaps were not successfully regenerated.'), 'error'); drupal_set_message(t('The sitemaps were not successfully regenerated.'), 'error');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment