2 * Implements hook_taxonomy_term_load().
4 function {{ machine_name }}_taxonomy_term_load($terms) {
5 $result = db_select('mytable', 'm')
6 ->fields('m', array('tid', 'foo'))
7 ->condition('m.tid', array_keys($terms), 'IN')
9 foreach ($result as $record) {
10 $terms[$record->tid]->foo = $record->foo;