You are here

function xmlsitemap_get_current_context in XML sitemap 6.2

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

Get the sitemap context of the current request.

Related topics

2 calls to xmlsitemap_get_current_context()
xmlsitemap_output_chunk in ./xmlsitemap.pages.inc
Output a sitemap page.
xmlsitemap_sitemap_load_by_context in ./xmlsitemap.module
Load an XML sitemap array from the database based on its context.

File

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

Code

function xmlsitemap_get_current_context() {
  $context =& xmlsitemap_static(__FUNCTION__);
  xmlsitemap_load_all_includes();
  if (!isset($context)) {
    $context = module_invoke_all('xmlsitemap_context');
    drupal_alter('xmlsitemap_context', $context);
    asort($context);
  }
  return $context;
}