function hook_xmlsitemap_link_info in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_link_info()
- 7.2 xmlsitemap.api.php \hook_xmlsitemap_link_info()
- 2.x xmlsitemap.api.php \hook_xmlsitemap_link_info()
Provide information on the type of links this module provides.
See also
hook_entity_info()
hook_entity_info_alter()
6 functions implement hook_xmlsitemap_link_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- xmlsitemap_custom_xmlsitemap_link_info in xmlsitemap_custom/
xmlsitemap_custom.module - Implements hook_xmlsitemap_link_info().
- xmlsitemap_menu_xmlsitemap_link_info in xmlsitemap_menu/
xmlsitemap_menu.module - Implements hook_xmlsitemap_link_info().
- xmlsitemap_node_xmlsitemap_link_info in xmlsitemap_node/
xmlsitemap_node.module - Implements hook_xmlsitemap_link_info().
- xmlsitemap_taxonomy_xmlsitemap_link_info in xmlsitemap_taxonomy/
xmlsitemap_taxonomy.module - Implements hook_xmlsitemap_link_info().
- xmlsitemap_user_xmlsitemap_link_info in xmlsitemap_user/
xmlsitemap_user.module - Implements hook_xmlsitemap_link_info().
1 invocation of hook_xmlsitemap_link_info()
- xmlsitemap_get_link_info in ./
xmlsitemap.module - Returns information about supported sitemap link types.
File
- ./
xmlsitemap.api.php, line 21 - Hooks provided by the XML sitemap module.
Code
function hook_xmlsitemap_link_info() {
return array(
'mymodule' => array(
'label' => 'My module',
'base table' => 'mymodule',
'entity keys' => array(
// Primary ID key on {base table}
'id' => 'myid',
// Subtype key on {base table}
'bundle' => 'mysubtype',
),
'path callback' => 'mymodule_path',
'bundle label' => t('Subtype name'),
'bundles' => array(
'mysubtype1' => array(
'label' => t('My subtype 1'),
'admin' => array(
'real path' => 'admin/settings/mymodule/mysubtype1/edit',
'access arguments' => array(
'administer mymodule',
),
),
'xmlsitemap' => array(
'status' => XMLSITEMAP_STATUS_DEFAULT,
'priority' => XMLSITEMAP_PRIORITY_DEFAULT,
),
),
),
'xmlsitemap' => array(
// Callback function to take an array of IDs and save them as sitemap
// links.
'process callback' => '',
// Callback function used in batch API for rebuilding all links.
'rebuild callback' => '',
// Callback function called from the XML sitemap settings page.
'settings callback' => '',
),
),
);
}