function taxonomy_manager_export_get_tree in Taxonomy Manager 7
Same name and namespace in other branches
- 5 taxonomy_manager.module \taxonomy_manager_export_get_tree()
- 6.2 taxonomy_manager.admin.inc \taxonomy_manager_export_get_tree()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_export_get_tree()
Helper for loading the tree to export.
1 call to taxonomy_manager_export_get_tree()
- taxonomy_manager_export_form_submit in ./
taxonomy_manager.admin.inc - Submit handler for the export form.
File
- ./
taxonomy_manager.admin.inc, line 2770
Code
function taxonomy_manager_export_get_tree($vid, $selected_tid, $depth, $scope) {
$tree = array();
if ($scope == 'whole_voc') {
$tree = taxonomy_get_tree($vid, 0, $depth);
}
elseif ($scope == 'children' && $selected_tid) {
$tree = taxonomy_get_tree($vid, $selected_tid, $depth);
}
elseif ($scope == 'root_terms') {
$tree = taxonomy_get_tree($vid, 0, 1);
}
return $tree;
}