function taxonomy_test_taxonomy_term_load
7.x taxonomy_test.module | taxonomy_test_taxonomy_term_load($terms) |
Implements hook_taxonomy_term_load().
File
- drupal-7.x/
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;
}
}
}