function hook_xmlsitemap_link_alter in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_link_alter()
- 7.2 xmlsitemap.api.php \hook_xmlsitemap_link_alter()
- 2.x xmlsitemap.api.php \hook_xmlsitemap_link_alter()
Alter the data of a sitemap link before the link is saved.
Parameters
$link: An array with the data of the sitemap link.
1 function implements hook_xmlsitemap_link_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- xmlsitemap_xmlsitemap_link_alter in ./
xmlsitemap.xmlsitemap.inc - Implements hook_xmlsitemap_link_alter().
1 invocation of hook_xmlsitemap_link_alter()
- xmlsitemap_link_save in ./
xmlsitemap.module - Saves or updates a sitemap link.
File
- ./
xmlsitemap.api.php, line 66 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_link_alter(&$link) {
if ($link['type'] == 'mymodule') {
$link['priority'] += 0.5;
}
}