You are here

function _drupalgap_taxonomy_get_terms in DrupalGap 7.2

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

DrupalGap interface to taxonomy_get_tree().

See also

taxonomy_get_tree()

File

./drupalgap.resource.inc, line 406
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;
}