function taxonomy_vocabulary_load_multiple

Loads multiple taxonomy vocabularies based on certain conditions.

This function should be used whenever you need to load more than one vocabulary from the database. Terms are loaded into memory and will not require database access if loaded again during the same page request.

Parameters

array $vids: (optional) An array of entity IDs. If omitted, all entities are loaded.

Return value

array An array of vocabulary objects, indexed by vid.

See also

entity_load_multiple()

7 calls to taxonomy_vocabulary_load_multiple()
taxonomy_field_settings_form in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_field_settings_form().
taxonomy_permission in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_permission().
VocabularyTest::testTaxonomyAdminChangingWeights in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php
Changing weights on the vocabulary overview with two or more vocabularies.
VocabularyTest::testTaxonomyAdminNoVocabularies in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php
Test the vocabulary overview with no vocabularies.
VocabularyUnitTest::testTaxonomyVocabularyDeleteWithTerms in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyUnitTest.php
Test deleting a taxonomy that contains terms.

... See full list

File

drupal/core/modules/taxonomy/taxonomy.module, line 815
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_load_multiple(array $vids = NULL) {
  return entity_load_multiple('taxonomy_vocabulary', $vids);
}