Act on taxonomy vocabularies when loaded.
Modules implementing this hook can act on the vocabulary objects before they are returned by taxonomy_vocabulary_load_multiple().
$vocabulary: An array of taxonomy vocabulary objects.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_taxonomy_vocabulary_load($vocabularies) {
$result = db_select('mytable', 'm')
->fields('m', array(
'vid',
'foo',
))
->condition('m.vid', array_keys($vocabularies), 'IN')
->execute();
foreach ($result as $record) {
$vocabularies[$record->vid]->foo = $record->foo;
}
}