You are here

function _drupalgap_taxonomy_get_vocabularies in DrupalGap 6

Same name and namespace in other branches
  1. 7.2 drupalgap.resource.inc \_drupalgap_taxonomy_get_vocabularies()
  2. 7 drupalgap.resource.inc \_drupalgap_taxonomy_get_vocabularies()
1 string reference to '_drupalgap_taxonomy_get_vocabularies'
drupalgap_services_resources in ./drupalgap.services.inc
Defines function signatures for resources available to services.

File

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

Code

function _drupalgap_taxonomy_get_vocabularies() {
  $sql = 'SELECT vid, name, description, weight
    FROM {vocabulary}
    ORDER BY weight ASC';
  $result = db_query($sql);
  $results = array();
  while ($data = db_fetch_object($result)) {
    $results[] = $data;
  }
  return $results;
}