| 7 taxonomy.api.php | hook_taxonomy_vocabulary_load($vocabularies) |
| 8 taxonomy.api.php | hook_taxonomy_vocabulary_load(array $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().
Parameters
$vocabulary: An array of taxonomy vocabulary objects.
Related topics
1 function implements hook_taxonomy_vocabulary_load()
File
- modules/
taxonomy/ taxonomy.api.php, line 22 - Hooks provided by the Taxonomy module.
Code
function hook_taxonomy_vocabulary_load($vocabularies) {
foreach ($vocabularies as $vocabulary) {
$vocabulary->synonyms = variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE);
}
}
Login or register to post comments