Commit 5852be75 authored by dpovshed's avatar dpovshed Committed by RenatoG

Issue #2282333 by dpovshed, applicity_sam, Chris Matthews, RenatoG: Sitemap...

Issue #2282333 by dpovshed, applicity_sam, Chris Matthews, RenatoG: Sitemap Generate - Allow for links to be altered
parent dea7af3f
......@@ -219,7 +219,9 @@ function xmlsitemap_generate_chunk(stdClass $sitemap, XMLSitemapWriter $writer,
'query' => $parsed_url['query'],
'fragment' => $parsed_url['fragment'],
);
// @todo Add a separate hook_xmlsitemap_link_url_alter() here?
// Give other projects a chance to adjust the links that will be output.
drupal_alter('xmlsitemap_link', $link, $link_options);
$link_url = url($link['loc'], $link_options + $url_options);
// Skip this link if it was a duplicate of the last one.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment