You are here

function taxonomy_revision_taxonomy_term_presave in Taxonomy revision 7

Implements hook_taxonomy_term_presave().

File

./taxonomy_revision.module, line 297
This is the main module file for the Taxonomy revision module.

Code

function taxonomy_revision_taxonomy_term_presave($term) {

  // We need to force a new revision creation if the term is new.
  if (empty($term->tid)) {
    $term->revision = TRUE;
  }
}