function lingotek_get_advanced_vocabularies in Lingotek Translation 7.7
Returns a list of taxonomy vocabularies that have field instances.
Return value
array An array containing the vocabulary/bundle machine name, keyed by vid.
2 calls to lingotek_get_advanced_vocabularies()
File
- ./
lingotek.util.inc, line 3172 - Utility functions.
Code
function lingotek_get_advanced_vocabularies() {
$query = db_select('taxonomy_vocabulary', 'tv');
$query
->fields('tv', array(
'vid',
'machine_name',
));
$query
->join('field_config_instance', 'fci', 'tv.machine_name = fci.bundle');
$vocabularies = $query
->execute()
->fetchAllKeyed();
drupal_alter('lingotek_advanced_taxonomies', $vocabularies);
return $vocabularies;
}