function xmlsitemap_sitemap_get_file

7.x xmlsitemap.module xmlsitemap_sitemap_get_file(stdClass $sitemap, $chunk = 'index')
6.x xmlsitemap.module xmlsitemap_sitemap_get_file(stdClass $sitemap, $chunk = 'index')

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.xmlsitemap.inc
Constructor.
xmlsitemap_output_chunk in xmlsitemap/xmlsitemap.pages.inc
Output a sitemap page.
xmlsitemap_regenerate_batch_generate in xmlsitemap/xmlsitemap.generate.inc
Batch callback; generate all pages of a sitemap.

File

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

Code

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