| Versions | |
|---|---|
| 7 | hook_taxonomy_vocabulary_load($vocabularies) |
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.
drupal/
<?php
function hook_taxonomy_vocabulary_load($vocabularies) {
foreach ($vocabularies as $vocabulary) {
$vocabulary->synonyms = variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE);
}
}
?>