You are here

function language_xmlsitemap_context_url_options in XML sitemap 2.x

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

Implements hook_xmlsitemap_context_url_options() for language module.

File

./xmlsitemap.module, line 1726
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;
}