You are here

function _xmlsitemap_submit_on_exit in XML sitemap 5

Same name and namespace in other branches
  1. 5.2 xmlsitemap/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.

Related topics

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

File

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

Code

function _xmlsitemap_submit_on_exit() {
  static $called = FALSE;
  $return = $called;
  $called = TRUE;
  return $return;
}