function hook_taxonomy_term_update
hook_taxonomy_term_update($term)
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
File
- modules/taxonomy/taxonomy.api.php, line 155
- Hooks provided by the Taxonomy module.
Code
function hook_taxonomy_term_update($term) { db_update('mytable') ->fields(array('foo' => $term->foo)) ->condition('tid', $term->tid) ->execute(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.api.php/function/hook_taxonomy_term_update/7.x