function xmlsitemap_taxonomy_xmlsitemap_link_info_alter in XML sitemap 7.2
Implements hook_xmlsitemap_link_info_alter().
File
- xmlsitemap_taxonomy/
xmlsitemap_taxonomy.module, line 21 - Main file for XML sitemap taxonomy.
Code
function xmlsitemap_taxonomy_xmlsitemap_link_info_alter(&$link_info) {
foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
// Adjust the edit path to the *real* edit path.
$link_info['taxonomy_term']['bundles'][$machine_name]['admin']['path'] .= '/edit';
$link_info['taxonomy_term']['bundles'][$machine_name]['admin']['real path'] .= '/edit';
}
}