You are here

function domain_xmlsitemap_xmlsitemap_context_url_options in Domain XML sitemap 7

Same name and namespace in other branches
  1. 6 domain_xmlsitemap.module \domain_xmlsitemap_xmlsitemap_context_url_options()

Implements hook_xmlsitemap_context_url_options().

File

./domain_xmlsitemap.xmlsitemap.inc, line 31
XML sitemap integration functions for domain_xmlsitemap.module.

Code

function domain_xmlsitemap_xmlsitemap_context_url_options(array $context) {
  $options = array();
  if (isset($context['domain']) && ($domain = domain_load($context['domain']))) {
    $options['base_url'] = rtrim($domain['path'], '/');
  }
  return $options;
}