function 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.