| 7 taxonomy.api.php | hook_taxonomy_vocabulary_update($vocabulary) |
| 8 taxonomy.api.php | hook_taxonomy_vocabulary_update(TaxonomyVocabulary $vocabulary) |
Act on taxonomy vocabularies when updated.
Modules implementing this hook can act on the vocabulary object when updated.
Parameters
$vocabulary: A taxonomy vocabulary object.
Related topics
2 functions implement hook_taxonomy_vocabulary_update()
1 invocation of hook_taxonomy_vocabulary_update()
File
- modules/
taxonomy/ taxonomy.api.php, line 65 - Hooks provided by the Taxonomy module.
Code
function hook_taxonomy_vocabulary_update($vocabulary) {
$status = $vocabulary->synonyms ? TRUE : FALSE;
if ($vocabulary->synonyms) {
variable_set('taxonomy_' . $vocabulary->vid . '_synonyms', $status);
}
}
Login or register to post comments