hook_taxonomy_vocabulary_presave

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_taxonomy_vocabulary_presave($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

$vocabulary A taxonomy vocabulary object.

Related topics

Code

modules/taxonomy/taxonomy.api.php, line 38

<?php
function hook_taxonomy_vocabulary_presave($vocabulary) {
  $vocabulary->foo = 'bar';
}
?>