function taxonomy_service_get_tree in Services 7.3
Same name and namespace in other branches
- 5 services/taxonomy_service/taxonomy_service.module \taxonomy_service_get_tree()
- 6.3 resources/taxonomy_resource.inc \taxonomy_service_get_tree()
- 6 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_get_tree()
- 6.2 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_get_tree()
- 7 services/taxonomy_service/taxonomy_service.inc \taxonomy_service_get_tree()
Services interface to taxonomy_get_tree().
See also
1 string reference to 'taxonomy_service_get_tree'
- _taxonomy_resource_definition in resources/
taxonomy_resource.inc - @file Link general taxonomy functionalities to services module.
File
- resources/
taxonomy_resource.inc, line 528 - Link general taxonomy functionalities to services module.
Code
function taxonomy_service_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities = 0) {
$terms = taxonomy_get_tree($vid, $parent, $max_depth, $load_entities);
if (empty($terms)) {
return services_error(t('No vocabulary with id @vid found.', array(
'@vid' => $vid,
)), 404);
}
return $terms;
}