You are here

function _xmlsitemap_submit_on_exit in XML sitemap 5.2

Same name and namespace in other branches
  1. 5 xmlsitemap.module \_xmlsitemap_submit_on_exit()

Schedule a call to _xmlsitemap_ping() to be run on exit. Use this function instead of _xmlsitemap_ping() to avoid a delay in outputting the page to the user.

Return value

TRUE if the function has been called previously, FALSE otherwise.

2 calls to _xmlsitemap_submit_on_exit()
xmlsitemap_exit in xmlsitemap/xmlsitemap.module
Implementation of hook_exit().
xmlsitemap_flag_sitemap in xmlsitemap/xmlsitemap.module
Mark the sitemap as changed and the cache as needing update.

File

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

Code

function _xmlsitemap_submit_on_exit() {
  static $count = 0;
  return $count++ != 0;
}