function xmlsitemap_taxonomy_xmlsitemap_link_info in XML sitemap 6.2
Implements hook_xmlsitemap_link_info().
File
- xmlsitemap_taxonomy/
xmlsitemap_taxonomy.module, line 6
Code
function xmlsitemap_taxonomy_xmlsitemap_link_info() {
$types['taxonomy_term'] = array(
'label' => t('Taxonomy'),
'bundle label' => t('Vocabulary'),
'base table' => 'term_data',
'entity keys' => array(
'id' => 'tid',
'bundle' => 'vid',
),
'uri callback' => 'xmlsitemap_taxonomy_term_uri',
'load hook' => 'taxonomy_get_term',
'xmlsitemap' => array(
'process callback' => 'xmlsitemap_taxonomy_xmlsitemap_process_taxonomy_term_links',
),
);
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
$types['taxonomy_term']['bundles'][$vid] = array(
'label' => $vocabulary->name,
'admin' => array(
'real path' => 'admin/content/taxonomy/edit/vocabulary/' . $vid,
'access arguments' => array(
'administer taxonomy',
),
),
);
}
return $types;
}