function xmlsitemap_flag_sitemap in XML sitemap 5.2
Same name and namespace in other branches
- 6 xmlsitemap.module \xmlsitemap_flag_sitemap()
Mark the sitemap as changed and the cache as needing update.
Return value
None
19 calls to xmlsitemap_flag_sitemap()
- xmlsitemap_enable in xmlsitemap/
xmlsitemap.install - Implementation of hook_enable().
- xmlsitemap_menu_disable in xmlsitemap_menu/
xmlsitemap_menu.install - Implementation of hook_disable().
- xmlsitemap_menu_enable in xmlsitemap_menu/
xmlsitemap_menu.install - Implementation of hook_enable().
- xmlsitemap_menu_menu in xmlsitemap_menu/
xmlsitemap_menu.module - Implementation of hook_menu().
- xmlsitemap_node_comment in xmlsitemap_node/
xmlsitemap_node.module - Implementation of hook_comment().
File
- xmlsitemap/
xmlsitemap.module, line 464 - Creates a sitemap compatible with the sitemaps.org schema.
Code
function xmlsitemap_flag_sitemap() {
if (!variable_get('xmlsitemap_changed', FALSE)) {
variable_set('xmlsitemap_changed', TRUE);
}
if (!variable_get('xmlsitemap_update', FALSE)) {
variable_set('xmlsitemap_update', TRUE);
}
if (variable_get('xmlsitemap_submit', FALSE)) {
_xmlsitemap_submit_on_exit();
}
}