| 7 taxonomy.api.php | hook_taxonomy_term_presave($term) |
| 8 taxonomy.api.php | hook_taxonomy_term_presave(TaxonomyTerm $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.
Parameters
$term: A term object.
Related topics
1 function implements hook_taxonomy_term_presave()
1 invocation of hook_taxonomy_term_presave()
File
- modules/
taxonomy/ taxonomy.api.php, line 119 - Hooks provided by the Taxonomy module.
Code
function hook_taxonomy_term_presave($term) {
$term->foo = 'bar';
}
Login or register to post comments