Posted by Vacilando on January 1, 2012 at 7:20pm
2 followers
Jump to:
| Project: | XML sitemap |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
What does "Save and restore any custom inclusion and priority links" in the rebuild tab mean?
I use hook_xmlsitemap_links() for generating a number of custom links for sitemaps. I assumed checking this box would keep such links in the xmlsitemap table while unchecking it would clear them from the xmlsitemap table and regenerate them anew.
However, after many tests (because I had a problem described at #1291898: Rebuild processing imaginary nodes), I found that the checkbox never cleared items generated by hook_xmlsitemap_links() from the xmlsitemap table. Eventually, I had to clear that table manually to alleviate/solve the issue.
So, to summarize, I would like to know:
- what does the checkbox do precisely
- if it does not clear items generated by hook_xmlsitemap_links() from the xmlsitemap table, how are such custom items meant be purged and regenerated?
Comments
#1
I found that hook_xmlsitemap_links() isn't called anymore in 6.x-2.0-rc2:
$ git grep 'module_invoke_all.*xmlsitemap_'xmlsitemap.admin.inc: $form['#operations'] = module_invoke_all('xmlsitemap_sitemap_operations');
xmlsitemap.drush.inc: module_invoke_all('xmlsitemap_index_links', $limit);
xmlsitemap.module: module_invoke_all('xmlsitemap_sitemap_insert', $sitemap);
xmlsitemap.module: module_invoke_all('xmlsitemap_sitemap_update', $sitemap);
xmlsitemap.module: module_invoke_all('xmlsitemap_sitemap_delete', $sitemap);
xmlsitemap.module: $uri['options'] = module_invoke_all('xmlsitemap_context_url_options', $sitemap->context);
xmlsitemap.module: //module_invoke_all('xmlsitemap_save_link', $link);
xmlsitemap.module: $link_info = array_merge($link_info, module_invoke_all('xmlsitemap_link_info'));
xmlsitemap.module: $info = module_invoke_all('xmlsitemap_context_info');
xmlsitemap.module: $context = module_invoke_all('xmlsitemap_context');
xmlsitemap_engines/xmlsitemap_engines.module: $engines = module_invoke_all('xmlsitemap_engine_info');
And I wonder how to replace it.