taxonomy_test_taxonomy_term_update

Versions
7
taxonomy_test_taxonomy_term_update($term)

Implements hook_taxonomy_term_update().

Code

modules/simpletest/tests/taxonomy_test.module, line 37

<?php
function taxonomy_test_taxonomy_term_update($term) {
  if (!empty($term->antonym)) {
    db_merge('taxonomy_term_antonym')
      ->key(array('tid' => $term->tid))
      ->fields(array(
        'name' => trim($term->antonym)
      ))
      ->execute();
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.