You are here

function gmap_taxonomy_vocabulary_is_enabled in GMap Module 7

Same name and namespace in other branches
  1. 7.2 gmap_taxonomy.module \gmap_taxonomy_vocabulary_is_enabled()

Check if gmap taxonomy is enabled for the given vocabulary

Parameters

$vocabulary: The vocabulary to check. Entire object and vid are allowed.

Return value

bool TRUE if the vocabulary is enabled

2 calls to gmap_taxonomy_vocabulary_is_enabled()
gmap_taxonomy_form_alter in ./gmap_taxonomy.module
Implementation of hook_form_alter().
gmap_taxonomy_taxonomy_term_update in ./gmap_taxonomy.module
Implement hook_taxonomy_term_update().

File

./gmap_taxonomy.module, line 216
GMap Taxonomy Markers

Code

function gmap_taxonomy_vocabulary_is_enabled($vocabulary) {
  if (!is_object($vocabulary)) {
    $vocabulary = taxonomy_vocabulary_load($vocabulary);
  }
  return $vocabulary && variable_get('gmap_taxonomy_vocab_' . $vocabulary->machine_name, FALSE);
}