You are here

function getlocations_check_vocabulary in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_check_vocabulary()

Function to check a vocabulary

Return value

Returns bool

2 calls to getlocations_check_vocabulary()
getlocations_get_machine_vocabularies in ./getlocations.module
Function gets list of vocabulary machine names
getlocations_get_vocabularies in ./getlocations.module
Function gets list of vocabularies

File

./getlocations.module, line 2631
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_check_vocabulary($machine_name) {
  if (module_exists('taxonomy')) {
    return getlocations_check_entity_type('taxonomy_term', $machine_name);
  }
  return FALSE;
}