1 taxonomy.api.php hook_taxonomy_vocabulary_presave(TaxonomyVocabulary $vocabulary)

Act on taxonomy vocabularies before they are saved.

Modules implementing this hook can act on the vocabulary object before it is inserted or updated.

Parameters

TaxonomyVocabulary $vocabulary: A taxonomy vocabulary.

Related topics

File

core/modules/taxonomy/taxonomy.api.php, line 40
Hooks provided by the Taxonomy module.

Code

function hook_taxonomy_vocabulary_presave(TaxonomyVocabulary $vocabulary) {
  $vocabulary->foo = 'bar';
}