Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
xmlsitemap
Commits
e47457f5
Commit
e47457f5
authored
Jun 08, 2018
by
jamesgrobertson
Committed by
pifagor
Jun 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2930844
by jamesgrobertson, pifagor, Elijah Lynn: Create a hook to respond to regeneration
parent
9dd6fc80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
xmlsitemap.api.php
xmlsitemap.api.php
+6
-0
xmlsitemap.generate.inc
xmlsitemap.generate.inc
+1
-0
No files found.
xmlsitemap.api.php
View file @
e47457f5
...
...
@@ -127,6 +127,12 @@ function hook_xmlsitemap_rebuild_clear(array $types, $save_custom) {
->
execute
();
}
/**
* Respond to XML sitemap regeneration.
*/
function
hook_xmlsitemap_regenerate_finished
()
{
}
/**
* Index links for the XML sitemaps.
*/
...
...
xmlsitemap.generate.inc
View file @
e47457f5
...
...
@@ -392,6 +392,7 @@ function xmlsitemap_regenerate_batch_finished($success, $results, $operations, $
),
WATCHDOG_NOTICE
);
module_invoke_all
(
'xmlsitemap_regenerate_finished'
);
}
else
{
drupal_set_message
(
t
(
'The sitemaps were not successfully regenerated.'
),
'error'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment