From 9f7aaa2341b914d455949ac5d1044256f25a5856 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 30 Mar 2009 05:18:49 +0000 Subject: #351797 by catch: Allow loading multiple vocabularies at once (with tests). --- modules/taxonomy/taxonomy.api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.api.php') diff --git a/modules/taxonomy/taxonomy.api.php b/modules/taxonomy/taxonomy.api.php index 21790e17b..7c3106bb6 100644 --- a/modules/taxonomy/taxonomy.api.php +++ b/modules/taxonomy/taxonomy.api.php @@ -20,8 +20,10 @@ * @param $vocabulary * A taxonomy vocabulary object. */ -function hook_taxonomy_vocabulary_load($vocabulary) { - $vocabulary->synonyms = variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE); +function hook_taxonomy_vocabulary_load($vocabularies) { + foreach ($vocabularies as $vocabulary) { + $vocabulary->synonyms = variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE); + } } /** -- cgit v1.2.3