Index: taxonomy.module.copyme =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/category/wrappers/taxonomy.module.copyme,v retrieving revision 1.26.2.3 diff -u -p -r1.26.2.3 taxonomy.module.copyme --- taxonomy.module.copyme 7 Apr 2007 01:20:12 -0000 1.26.2.3 +++ taxonomy.module.copyme 7 Apr 2007 01:59:25 -0000 @@ -129,6 +129,10 @@ function taxonomy_term_page($str_tids = } function taxonomy_term_path($term) { + if ($term->tid && !$term->cid) { + // Convert it first. + $term = _taxonomy_term_into_category($term); + } return category_category_path($term); } @@ -1047,6 +1051,20 @@ function _taxonomy_category_into_term($c } /** + * + */ +function _taxonomy_term_into_category($term) { + $category = new stdClass(); + + $category->cid = $term->tid; + $category->cnid = $term->vid; + $category->title = $term->name; + $category->description = $term->description; + $category->weight = $term->weight; + return $category; +} + +/** * Converts a category node into a term array. * * @param $node