You are here

function xmlsitemap_cron in XML sitemap 5

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_cron()
  2. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_cron()
  3. 6.2 xmlsitemap.module \xmlsitemap_cron()
  4. 7.2 xmlsitemap.module \xmlsitemap_cron()
  5. 2.x xmlsitemap.module \xmlsitemap_cron()

Implementation of hook_cron().

Related topics

File

./xmlsitemap.module, line 785
Creates a site map compatible with the sitemaps.org schema.

Code

function xmlsitemap_cron() {
  if (variable_get('xmlsitemap_cron_submit', FALSE) && variable_get('xmlsitemap_changed', FALSE)) {
    _xmlsitemap_ping();
  }
}