function taxonomy_csv_term_get_field_terms in Taxonomy CSV import/export 7.4
Return an array of all term objects of a reference field of a given term ID.
Parameters
$term_tid: Term object or term id from which to get term objects. Use of object is quicker.
$field_name: Term reference field to get.
Return value
Result array of term objects.
1 call to taxonomy_csv_term_get_field_terms()
- taxonomy_csv_term_get_relations in ./
taxonomy_csv.term.api.inc - Return an array of all related term ids of a given term id or object. Wrapper of taxonomy_csv_term_get_field_values.
File
- ./
taxonomy_csv.term.api.inc, line 194 - Find, get and set full or detail term items.
Code
function taxonomy_csv_term_get_field_terms($term_tid, $field_name) {
$items = array();
$values = taxonomy_csv_term_get_field_values($term_tid, $field_name);
foreach ($values as $tid) {
$items[] = taxonomy_term_load($tid);
}
return $items;
}