You are here

function xmlsitemap_chunk_count in XML sitemap 6

Return the number of chunk files.

1 call to xmlsitemap_chunk_count()
xmlsitemap_output in ./xmlsitemap.pages.inc
Menu callback; display the sitemap.

File

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

Code

function xmlsitemap_chunk_count() {
  $link_count = xmlsitemap_link_count();
  $chunk_size = variable_get('xmlsitemap_chunk_size', XMLSITEMAP_DEFAULT_SITEMAP_LINKS);
  return ceil($link_count / $chunk_size);
}