You are here

function xmlsitemap_flag_sitemap in XML sitemap 6

Same name and namespace in other branches
  1. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_flag_sitemap()

Mark the sitemap as changed, and the cache as needing update.

21 calls to xmlsitemap_flag_sitemap()
xmlsitemap_delete_cache_files in ./xmlsitemap.module
Delete the cache file used for the sitemap content, and mark the sitemap as changed.
xmlsitemap_disable in ./xmlsitemap.install
Implementation of hook_disable().
xmlsitemap_enable in ./xmlsitemap.install
Implementation of hook_enable().
xmlsitemap_node_cron in xmlsitemap_node/xmlsitemap_node.module
Implementation of hook_cron().
xmlsitemap_node_disable in xmlsitemap_node/xmlsitemap_node.install
Implementation of hook_disable().

... See full list

1 string reference to 'xmlsitemap_flag_sitemap'
xmlsitemap_xmlsitemap_operations in ./xmlsitemap.module
Implementation of hook_xmlsitemap_operations().

File

./xmlsitemap.module, line 273
Creates a sitemap compatible with the sitemaps.org schema.

Code

function xmlsitemap_flag_sitemap() {
  if (!variable_get('xmlsitemap_sitemap_is_changed', FALSE)) {
    variable_set('xmlsitemap_sitemap_is_changed', TRUE);
  }
  if (!variable_get('xmlsitemap_sitemap_needs_update', FALSE)) {
    variable_set('xmlsitemap_sitemap_needs_update', TRUE);
  }
}