function xmlsitemap_hook_info in XML sitemap 8
Same name and namespace in other branches
- 7.2 xmlsitemap.module \xmlsitemap_hook_info()
- 2.x xmlsitemap.module \xmlsitemap_hook_info()
Implements hook_hook_info().
File
- ./
xmlsitemap.module, line 89 - xmlsitemap XML sitemap
Code
function xmlsitemap_hook_info() {
$hooks = [
'xmlsitemap_link_info',
'xmlsitemap_link_info_alter',
'xmlsitemap_link_alter',
'xmlsitemap_index_links',
'xmlsitemap_context_info',
'xmlsitemap_context_info_alter',
'xmlsitemap_context_url_options',
'xmlsitemap_context',
'xmlsitemap_element_alter',
'xmlsitemap_root_attributes_alter',
'xmlsitemap_sitemap_insert',
'xmlsitemap_sitemap_update',
'xmlsitemap_sitemap_operations',
'xmlsitemap_sitemap_delete',
'xmlsitemap_sitemap_link_url_options_alter',
'query_xmlsitemap_generate_alter',
'query_xmlsitemap_index_links_alter',
'form_xmlsitemap_sitemap_edit_form_alter',
'xmlsitemap_rebuild_clear',
];
$hooks = array_combine($hooks, $hooks);
foreach ($hooks as $hook => $info) {
$hooks[$hook] = [
'group' => 'xmlsitemap',
];
}
return $hooks;
}