function hook_taxonomy_term_update

Act on taxonomy terms when updated.

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

Parameters

$term: A taxonomy term object.

Related topics

4 functions implement hook_taxonomy_term_update()

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_term_update in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_taxonomy_term_update().
path_taxonomy_term_update in drupal-7.x/modules/path/path.module
Implements hook_taxonomy_term_update().
taxonomy_test_taxonomy_term_update in drupal-7.x/modules/simpletest/tests/taxonomy_test.module
Implements hook_taxonomy_term_update().
trigger_taxonomy_term_update in drupal-7.x/modules/trigger/trigger.module
Implements hook_taxonomy_term_update().

Archivo

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

Código

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