function taxonomy_manager_export_get_tree in Taxonomy Manager 5
Same name and namespace in other branches
- 6.2 taxonomy_manager.admin.inc \taxonomy_manager_export_get_tree()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_export_get_tree()
- 7 taxonomy_manager.admin.inc \taxonomy_manager_export_get_tree()
Helper for cvs export to get taxonomy tree
1 call to taxonomy_manager_export_get_tree()
- taxonomy_manager_export_csv in ./
taxonomy_manager.module - Generates the CVS Ouput
File
- ./
taxonomy_manager.module, line 1497 - Taxonomy Manager
Code
function taxonomy_manager_export_get_tree($vid, $selected_tid, $options) {
$tree = array();
if ($options['whole_voc']) {
$tree = taxonomy_get_tree($vid);
}
else {
if ($options['children'] && $selected_tid) {
$tree = taxonomy_get_tree($vid, $selected_tid);
}
else {
if ($options['root_terms']) {
$tree = taxonomy_get_tree($vid, 0, -1, 1);
}
}
}
return $tree;
}