You are here

function taxonomy_edge_taxonomy_term_presave in Taxonomy Edge 7.2

Implements hook_taxonomy_term_presave().

File

./taxonomy_edge.module, line 162
Selecting all children of a given taxonomy term can be a pain. This module makes it easier to do this, by maintaining a complete list of edges for each term using the adjecency matrix graph theory.

Code

function taxonomy_edge_taxonomy_term_presave($term) {
  if (!$term->tid) {
    return;
  }
  $org = !empty($term->original) ? $term->original : taxonomy_term_load($term->tid);
  $modified =& drupal_static('taxonomy_edge_save_check_modified', TRUE);
  $modified = $org->name != $term->name || $org->weight != $term->weight;
}