function taxonomy_test_taxonomy_term_load in SimpleTest 7
Implement hook_taxonomy_term_load().
File
- tests/
taxonomy_test.module, line 11 - 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;
}
}
}