function taxonomy_edge_get_tree in Taxonomy Edge 7
Same name and namespace in other branches
- 8 taxonomy_edge.module \taxonomy_edge_get_tree()
- 6 taxonomy_edge.module \taxonomy_edge_get_tree()
- 7.2 taxonomy_edge.module \taxonomy_edge_get_tree()
Reimplementation of taxonomy_get_tree().
Limit db fetch to only specified parent.
See also
1 string reference to 'taxonomy_edge_get_tree'
- taxonomy_edge_core_override_info in ./
taxonomy_edge.module - Implements hook_core_override().
File
- ./
taxonomy_edge.module, line 871 - Optimization of taxonomy data model for SQL performance.
Code
function taxonomy_edge_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities = FALSE) {
// @todo Use regular taxonomy_get_tree if realtime build is disabled,
// as this function might be unreliable.
module_load_include('core.inc', 'taxonomy_edge');
// Use optimized version if possible.
if (variable_get('taxonomy_edge_optimized_get_tree', TAXONOMY_EDGE_OPTIMIZED_GET_TREE)) {
return taxonomy_edge_get_tree_optimized($vid, $parent, $max_depth, $load_entities);
}
else {
return taxonomy_edge_get_tree_generic($vid, $parent, $max_depth, $load_entities);
}
}