function hook_xmlsitemap_context in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_context()
- 6.2 xmlsitemap.api.php \hook_xmlsitemap_context()
- 2.x xmlsitemap.api.php \hook_xmlsitemap_context()
Provide information about the current context on the site.
See also
hook_xmlsitemap_context_alter()
1 function implements hook_xmlsitemap_context()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- xmlsitemap_i18n_xmlsitemap_context in xmlsitemap_i18n/
xmlsitemap_i18n.module - Implements hook_xmlsitemap_context().
1 invocation of hook_xmlsitemap_context()
- xmlsitemap_get_current_context in ./
xmlsitemap.module - Get the sitemap context of the current request.
File
- ./
xmlsitemap.api.php, line 188 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_context() {
$context = array();
if ($vid = mymodule_get_current_vocabulary()) {
$context['vocabulary'] = $vid;
}
return $context;
}