You are here

function gmap_taxonomy_vocabulary_is_enabled in GMap Module 7.2

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

Check if gmap taxonomy is enabled for the given vocabulary.

@todo move this to GmapTaxonomyCRUDi class

Parameters

object $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
Implements hook_form_alter().
gmap_taxonomy_taxonomy_term_update in ./gmap_taxonomy.module
Implements hook_taxonomy_term_update().

File

./gmap_taxonomy.module, line 261
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);
}