You are here

function getdirections_get_vocabularies in Get Directions 7.3

Provide an array of vocabularies.

1 call to getdirections_get_vocabularies()
getdirections_menu in ./getdirections.module
Implement hook_menu().

File

./getdirections.module, line 2986
Fetches google map directions.

Code

function getdirections_get_vocabularies() {
  if (module_exists('taxonomy')) {
    $vocabularies = taxonomy_get_vocabularies();
    $options = array();
    if (count($vocabularies)) {
      foreach ($vocabularies as $vid => $vocabulary) {
        if (getdirections_check_vocabulary($vocabulary->machine_name)) {
          $options[$vid] = $vocabulary->name;
        }
      }
      return $options;
    }
  }
  return FALSE;
}