You are here

function _drupalgap_taxonomy_get_terms in DrupalGap 7

Same name and namespace in other branches
  1. 6 drupalgap.resource.inc \_drupalgap_taxonomy_get_terms()
  2. 7.2 drupalgap.resource.inc \_drupalgap_taxonomy_get_terms()

DrupalGap interface to taxonomy_get_tree().

See also

taxonomy_get_tree()

1 string reference to '_drupalgap_taxonomy_get_terms'
drupalgap_services_resources in ./drupalgap.services.inc
Defines function signatures for resources available to services.

File

./drupalgap.resource.inc, line 398
This file implements the DrupalGap service resource call back functions.

Code

function _drupalgap_taxonomy_get_terms($vid, $parent = 0, $max_depth = NULL) {
  $terms = taxonomy_get_tree($vid, $parent, $max_depth);
  return $terms;
}