function taxonomy_test_taxonomy_term_load

Same name in other branches
  1. 10 core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_taxonomy_term_load()
  2. 11.x core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_taxonomy_term_load()

Implements hook_taxonomy_term_load().

File

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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.