You are here

function xmlsitemap_get_current_context in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_get_current_context()
  2. 6.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 1601
xmlsitemap XML sitemap

Code

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