You are here

function xmlsitemap_language_id in XML sitemap 6

Return the language string used to identify the cache file for the sitemap content.

3 calls to xmlsitemap_language_id()
xmlsitemap_output in ./xmlsitemap.pages.inc
Menu callback; display the sitemap.
_xmlsitemap_check_cache_files in ./xmlsitemap.pages.inc
Check the cache files.
_xmlsitemap_create_cache_files in ./xmlsitemap.pages.inc
Create the cache files containing the sitemap.

File

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

Code

function xmlsitemap_language_id() {
  global $language;
  return isset($language->language) ? $language->language : language_default('language');
}