function xmlsitemap_cron in XML sitemap 5.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_cron()
- 5 xmlsitemap.module \xmlsitemap_cron()
- 6.2 xmlsitemap.module \xmlsitemap_cron()
- 7.2 xmlsitemap.module \xmlsitemap_cron()
- 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();
}
}