function taxonomy_test_taxonomy_term_update
Implements hook_taxonomy_term_update().
File
-
modules/
simpletest/ tests/ taxonomy_test.module, line 39
Code
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();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.