function _jdrupal_taxonomy_get_vocabularies in jDrupal 7
Retrieves basic data for vocabularies.
Return value
array containing associative array(s) of vocabulary data.
1 string reference to '_jdrupal_taxonomy_get_vocabularies'
- jdrupal_services_resources in ./
jdrupal.services.inc - Defines function signatures for resources available to services.
File
- ./
jdrupal.resource.inc, line 211 - This file implements the jdrupal service resource call back functions.
Code
function _jdrupal_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();
}