You are here

function taxonomy_test_taxonomy_term_load in Drupal 7

Implements hook_taxonomy_term_load().

File

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

Code

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