function taxonomy_vocabulary_load_multiple
Same name in other branches
- 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_load_multiple()
Load 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
$vids: An array of taxonomy vocabulary IDs, or FALSE to load all vocabularies.
$conditions: An array of conditions to add to the query.
Return value
An array of vocabulary objects, indexed by vid.
See also
4 calls to taxonomy_vocabulary_load_multiple()
- TaxonomyVocabularyTestCase::testTaxonomyVocabularyLoadMultiple in modules/
taxonomy/ taxonomy.test - Tests for loading multiple vocabularies.
- taxonomy_get_vocabularies in modules/
taxonomy/ taxonomy.module - Return an array of all vocabulary objects.
- taxonomy_vocabulary_load in modules/
taxonomy/ taxonomy.module - Return the vocabulary object matching a vocabulary ID.
- taxonomy_vocabulary_machine_name_load in modules/
taxonomy/ taxonomy.module - Return the vocabulary object matching a vocabulary machine name.
File
-
modules/
taxonomy/ taxonomy.module, line 1348
Code
function taxonomy_vocabulary_load_multiple($vids = array(), $conditions = array()) {
return entity_load('taxonomy_vocabulary', $vids, $conditions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.