function xmlsitemap_node_xmlsitemap_link_info in XML sitemap 6.2
Implements hook_xmlsitemap_link_info().
File
- xmlsitemap_node/
xmlsitemap_node.module, line 6
Code
function xmlsitemap_node_xmlsitemap_link_info() {
$types['node'] = array(
'label' => t('Content'),
'bundle label' => t('Content type'),
'base table' => 'node',
'entity keys' => array(
'id' => 'nid',
'bundle' => 'type',
),
'uri callback' => 'xmlsitemap_node_uri',
'load hook' => 'node_load',
'xmlsitemap' => array(
'process callback' => 'xmlsitemap_node_xmlsitemap_process_node_links',
),
);
foreach (node_get_types('names') as $type => $name) {
$types['node']['bundles'][$type] = array(
'label' => $name,
'admin' => array(
'real path' => 'admin/content/node-type/' . str_replace('_', '-', $type),
'access arguments' => array(
'administer content types',
),
),
);
}
return $types;
}