| Versions | |
|---|---|
| 7 | hook_taxonomy_term_presave($term) |
Act on taxonomy terms before they are saved.
Modules implementing this hook can act on the term object before it is inserted or updated.
$term A term object.
drupal/
<?php
function hook_taxonomy_term_presave($term) {
$term->foo = 'bar';
}
?>