You are here

function gmap_taxonomy_taxonomy_vocabulary_update in GMap Module 7.2

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

Implements hook_taxonomy_vocabulary_update().

@todo move this to GmapTaxonomyCRUDi class

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

File

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