You are here

function language_xmlsitemap_context_url_options in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap.module \language_xmlsitemap_context_url_options()

Implements hook_xmlsitemap_context_url_options() for language module.

File

./xmlsitemap.module, line 1766
xmlsitemap XML sitemap

Code

function language_xmlsitemap_context_url_options(array $context) {
  $options = [];
  if (isset($context['language'])) {
    $options['language'] = xmlsitemap_language_load($context['language']);
  }
  return $options;
}