function taxonomy_xml_taxonomy_term_load in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 7 taxonomy_xml.module \taxonomy_xml_taxonomy_term_load()
Appends any missing data to the given term - by ref.
File
- ./
taxonomy_xml.module, line 1966 - This module makes it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_taxonomy_term_load($term) {
if ($parent_list = array_keys(taxonomy_get_parents($term->tid))) {
$term->parent = array_combine($parent_list, $parent_list);
}
if ($relation_list = array_keys(taxonomy_get_related($term->tid))) {
$term->relations = array_combine($relation_list, $relation_list);
}
$term->synonyms_array = taxonomy_get_synonyms($term->tid);
if ($guid = taxonomy_xml_get_term_guid($term)) {
$term->guid = $guid;
}
}