function _term_reference_tree_taxonomy_get_parents_all in Taxonomy Term Reference Tree Widget 7
Gets all parent tids for a given vid and children tids.
Parameters
int $vid: The taxonomy vocabulary ID.
array $children_tids: An array of tids for which to retrieve the parents.
Return value
array All parent tids of the given children tids.
1 call to _term_reference_tree_taxonomy_get_parents_all()
- term_reference_tree_process_checkbox_tree in ./
term_reference_tree.widget.inc - Process the checkbox_tree widget.
File
- ./
term_reference_tree.module, line 173
Code
function _term_reference_tree_taxonomy_get_parents_all($vid, $children_tids) {
$tree = _term_reference_tree_taxonomy_get_tree($vid);
return _term_reference_tree_taxonomy_get_parents_all_recursive($vid, $children_tids, $tree);
}