1 taxonomy_test.module taxonomy_test_taxonomy_term_load(array $terms)

Implements hook_taxonomy_term_load().

File

core/modules/simpletest/tests/taxonomy_test.module, line 12
Test module for Taxonomy hooks and functions not used in core.

Code

function taxonomy_test_taxonomy_term_load(array $terms) {
  foreach ($terms as $term) {
    $antonym = taxonomy_test_get_antonym($term->tid);
    if ($antonym) {
      $term->antonym = $antonym;
    }
  }
}