097851086431fce730991b7a7baf179c22966808
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / taxonomy_vocabulary_load.twig
1 /**
2  * Implements hook_taxonomy_vocabulary_load().
3  */
4 function {{ machine_name }}_taxonomy_vocabulary_load($vocabularies) {
5   $result = db_select('mytable', 'm')
6     ->fields('m', array('vid', 'foo'))
7     ->condition('m.vid', array_keys($vocabularies), 'IN')
8     ->execute();
9   foreach ($result as $record) {
10     $vocabularies[$record->vid]->foo = $record->foo;
11   }
12 }