function hook_xmlsitemap_link_info in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.api.php \hook_xmlsitemap_link_info()
- 6.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
2 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_xmlsitemap_link_info in ./
xmlsitemap.xmlsitemap.inc - 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' => '',
),
),
);
}