Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
My taxonomy terms URI are overriden by a custom module, so I need to call entity_uri() to have the right path.
My fix in site_map.module, line 659 :
elseif ($term->count) {
$full_term = taxonomy_term_load($term->tid);
$term_uri = entity_uri('taxonomy_term', $full_term);
$term_uri['options'] = isset($term_uri['options']) ? $term_uri['options'] : array();
$term_uri['options']['attributes']['title'] = $full_term->description;
$term_item .= l($full_term->name, $term_uri['path'], $term_uri['options']);
}
Badly, I need to load entire term otherwise entity_uri throws an error.
Thanks !
Comments