You are here

function xmlsitemap_cron in XML sitemap 5.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_cron()
  2. 5 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().

File

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

Code

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