function hook_taxonomy_vocabulary_presave

7.x taxonomy.api.php 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

1 function implements hook_taxonomy_vocabulary_presave()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_crud_hook_test_taxonomy_vocabulary_presave in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_taxonomy_vocabulary_presave().
1 invocation of hook_taxonomy_vocabulary_presave()
taxonomy_vocabulary_save in drupal-7.x/modules/taxonomy/taxonomy.module
Saves a vocabulary.

File

drupal-7.x/modules/taxonomy/taxonomy.api.php, line 41
Hooks provided by the Taxonomy module.

Code

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