function hook_xmlsitemap_context_alter in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_context_alter()
- 7.2 xmlsitemap.api.php \hook_xmlsitemap_context_alter()
- 2.x xmlsitemap.api.php \hook_xmlsitemap_context_alter()
Alter the current context information.
See also
1 invocation of hook_xmlsitemap_context_alter()
- xmlsitemap_get_current_context in ./
xmlsitemap.module - Get the sitemap context of the current request.
File
- ./
xmlsitemap.api.php, line 157 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_context_alter(&$context) {
if (user_access('administer taxonomy')) {
unset($context['vocabulary']);
}
}