function hook_taxonomy_term_presave

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.

Parameters

$term: A term object.

Related topics

File

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

Code

function hook_taxonomy_term_presave($term) {
  $term->foo = 'bar';
}

© 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_presave/7.x