You are here

function xmlsitemap_sitemap_get_file in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_sitemap_get_file()
  2. 7.2 xmlsitemap.module \xmlsitemap_sitemap_get_file()
  3. 2.x xmlsitemap.module \xmlsitemap_sitemap_get_file()

Return the expected file path for a specific sitemap chunk.

Parameters

$sitemap: An XML sitemap array.

$chunk: An optional specific chunk in the sitemap. Defaults to the index page.

Related topics

3 calls to xmlsitemap_sitemap_get_file()
XMLSitemapWriter::__construct in ./xmlsitemap.xmlsitemap.inc
Constructor.
xmlsitemap_output_chunk in ./xmlsitemap.pages.inc
Output a sitemap page.
xmlsitemap_regenerate_batch_generate in ./xmlsitemap.generate.inc
Batch callback; generate all pages of a sitemap.

File

./xmlsitemap.module, line 465
Main file for the xmlsitemap module.

Code

function xmlsitemap_sitemap_get_file(stdClass $sitemap, $chunk = 'index') {
  return xmlsitemap_get_directory($sitemap) . "/{$chunk}.xml";
}