function taxonomy_csv_term_get_full in Taxonomy CSV import/export 6.5
Same name and namespace in other branches
- 6.2 taxonomy_csv.term.api.inc \taxonomy_csv_term_get_full()
- 6.3 taxonomy_csv.term.api.inc \taxonomy_csv_term_get_full()
- 6.4 taxonomy_csv.term.api.inc \taxonomy_csv_term_get_full()
Complete a base term object.
Parameters
$term: The base term object to complete.
Return value
Found full term object.
3 calls to taxonomy_csv_term_get_full()
- taxonomy_csv_term_find in ./
taxonomy_csv.term.api.inc - Find and load a term.
- taxonomy_csv_term_load in ./
taxonomy_csv.term.api.inc - Get a full term object by its id.
- taxonomy_csv_term_load_multiple in ./
taxonomy_csv.term.api.inc - Load multiple full terms.
File
- ./
taxonomy_csv.term.api.inc, line 138 - Find, get and set full or detail term items.
Code
function taxonomy_csv_term_get_full($term) {
if (isset($term->tid)) {
$term->parents = taxonomy_csv_term_get_parents_tids($term->tid);
$term->relations = taxonomy_csv_term_get_relations_tids($term->tid);
$term->synonyms = taxonomy_get_synonyms($term->tid);
// Check vocabulary because if there are specific fields, term needs to be
// completed with them.
$vocabulary_formats = taxonomy_csv_format_check_vocabulary($term->vid);
foreach ($vocabulary_formats as $format) {
$funcname = "taxonomy_csv_term_get_full_{$format}";
$term = $funcname($term);
}
return $term;
}
// Else.
return FALSE;
}