You are here

function taxonomy_xml_get_term in Taxonomy import/export via XML 6.2

A variation of taxonomy_get_term - load all the peripheral term info too

File

./taxonomy_xml.module, line 1955
This module makes it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_get_term($tid, $vid) {
  if (!$vid) {
    $term = taxonomy_get_term($tid);
    $vid = $term->vid;
  }
  return taxonomy_get_tree($vid, $tid, -1, $max_depth = 1);
}