taxonomy_vocabulary_load_multiple

Versions
7
taxonomy_vocabulary_load_multiple($vids = array(), $conditions = array())

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.

See also

entity_load()

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.

▾ 2 functions call taxonomy_vocabulary_load_multiple()

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.

Code

modules/taxonomy/taxonomy.module, line 834

<?php
function taxonomy_vocabulary_load_multiple($vids = array(), $conditions = array()) {
  return entity_load('taxonomy_vocabulary', $vids, $conditions);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.