function getlocations_get_machine_vocabularies in Get Locations 7.2
Same name and namespace in other branches
- 7 getlocations.module \getlocations_get_machine_vocabularies()
Function gets list of vocabulary machine names
Return value
Returns array
File
- ./
getlocations.module, line 2232 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_get_machine_vocabularies() {
if (module_exists('taxonomy')) {
$vocabularies = taxonomy_get_vocabularies();
$options = array();
if (count($vocabularies)) {
foreach ($vocabularies as $vid => $vocabulary) {
if (getlocations_check_vocabulary($vocabulary->machine_name)) {
$options[$vid] = $vocabulary->machine_name;
}
}
return $options;
}
}
return FALSE;
}