You are here

function _xmlsitemap_ping in XML sitemap 5

Same name and namespace in other branches
  1. 5.2 xmlsitemap/xmlsitemap.module \_xmlsitemap_ping()

Submit the site map to search engines.

Return value

None

Related topics

2 calls to _xmlsitemap_ping()
xmlsitemap_cron in ./xmlsitemap.module
Implementation of hook_cron().
xmlsitemap_exit in ./xmlsitemap.module
Implementation of hook_exit().

File

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

Code

function _xmlsitemap_ping() {
  $status = _xmlsitemap_update_cache();
  if ($status) {
    module_invoke_all('xmlsitemap_engines', 'ping');
    variable_set('xmlsitemap_changed', FALSE);
  }
}