diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-30 05:18:49 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-30 05:18:49 +0000 |
commit | 9f7aaa2341b914d455949ac5d1044256f25a5856 (patch) | |
tree | f43ae6a785787faa00baf3d98b251dbb32c38ca3 /modules/taxonomy/taxonomy.api.php | |
parent | a0cca9a472b7764f54ad692c8e7943278f09a0be (diff) | |
download | brdo-9f7aaa2341b914d455949ac5d1044256f25a5856.tar.gz brdo-9f7aaa2341b914d455949ac5d1044256f25a5856.tar.bz2 |
#351797 by catch: Allow loading multiple vocabularies at once (with tests).
Diffstat (limited to 'modules/taxonomy/taxonomy.api.php')
-rw-r--r-- | modules/taxonomy/taxonomy.api.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); + } } /** |