1 taxonomy.api.php hook_taxonomy_term_update(TaxonomyTerm $term)

Act on taxonomy terms when updated.

Modules implementing this hook can act on the term object when updated.

Parameters

TaxonomyTerm $term: A taxonomy term entity.

Related topics

File

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

Code

function hook_taxonomy_term_update(TaxonomyTerm $term) {
  db_update('mytable')
    ->fields(array('foo' => $term->foo))
    ->condition('tid', $term->tid)
    ->execute();
}