function _drupalgap_taxonomy_get_vocabularies in DrupalGap 7
Same name and namespace in other branches
- 6 drupalgap.resource.inc \_drupalgap_taxonomy_get_vocabularies()
- 7.2 drupalgap.resource.inc \_drupalgap_taxonomy_get_vocabularies()
Retrieves basic data for vocabularies.
Return value
array containing associative array(s) of vocabulary data.
1 call to _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 383 - This file implements the DrupalGap service resource call back functions.
Code
function _drupalgap_taxonomy_get_vocabularies() {
$query = db_select('taxonomy_vocabulary', 'v');
$query
->fields('v', array(
'vid',
'name',
'machine_name',
'description',
'weight',
))
->orderBy('weight', 'ASC');
$result = $query
->execute();
return $result
->fetchAll();
}