You are here

function hook_xmlsitemap_context_info in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 xmlsitemap.api.php \hook_xmlsitemap_context_info()
  2. 6.2 xmlsitemap.api.php \hook_xmlsitemap_context_info()
  3. 7.2 xmlsitemap.api.php \hook_xmlsitemap_context_info()

Provide information about contexts available to XML sitemap.

See also

hook_xmlsitemap_context_info_alter()

1 function implements hook_xmlsitemap_context_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

language_xmlsitemap_context_info in ./xmlsitemap.module
Implements hook_xmlsitemap_context_info() for language module.
1 invocation of hook_xmlsitemap_context_info()
xmlsitemap_get_context_info in ./xmlsitemap.module
Gets info about a context.

File

./xmlsitemap.api.php, line 132
Hooks provided by the XML sitemap module.

Code

function hook_xmlsitemap_context_info() {
  $info['vocabulary'] = [
    'label' => t('Vocabulary'),
    'summary callback' => 'mymodule_xmlsitemap_vocabulary_context_summary',
    'default' => 0,
  ];
  return $info;
}