You are here

function gmap_taxonomy_taxonomy_vocabulary_update in GMap Module 7

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

Implement hook_taxonomy_vocabulary_update().

1 call to gmap_taxonomy_taxonomy_vocabulary_update()
gmap_taxonomy_taxonomy_vocabulary_insert in ./gmap_taxonomy.module
Implement hook_taxonomy_vocabulary_insert().

File

./gmap_taxonomy.module, line 78
GMap Taxonomy Markers

Code

function gmap_taxonomy_taxonomy_vocabulary_update($vocabulary) {
  if (isset($vocabulary->gmap_taxonomy_enable)) {
    variable_set('gmap_taxonomy_vocab_' . $vocabulary->machine_name, TRUE);
  }
  else {
    variable_del('gmap_taxonomy_vocab_' . $vocabulary->machine_name);
  }
}