Override taxonomy_term_uri Is there a way to modify the behavior of taxonomy_term_uri() in a custom module for D7? I am not able to do so by definining THEME_term_uri(), and I wouldn't like to alter the original Taxonomy module.
I managed to override it. I found out that 'taxonomy_term_uri' is defined in taxonomy.module's taxonomy_entity_info() function, so I added a hook that alters it:

function MODULE_entity_info_alter(&amp;$entity_info) {  
    $entity_info['taxonomy_term']['uri callback'] = 'MODULE_taxonomy_term_uri';
}

function MODULE_taxonomy_term_uri($term) {
    // change the path...
    return array(
        'path' =&gt; 'taxonomy/term/' . $term-&gt;tid,
    );
}