function gmap_taxonomy_update_7201 in GMap Module 7
Same name and namespace in other branches
- 7.2 gmap_taxonomy.install \gmap_taxonomy_update_7201()
Use vocabularies machine names instead of vids.
File
- ./
gmap_taxonomy.install, line 96 - gmap_taxonomy install routines.
Code
function gmap_taxonomy_update_7201() {
$enabled_vocabularies = variable_get('gmap_taxonomy_vocabs', array());
$vocabularies = taxonomy_vocabulary_load_multiple(array_keys(array_filter($enabled_vocabularies)));
$result = array();
foreach ($vocabularies as $vocabulary) {
$result[$vocabulary->machine_name] = TRUE;
}
// Save result
variable_set('gmap_taxonomy_vocabs', $result);
}