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.
array $vids: (optional) An array of entity IDs. If omitted, all entities are loaded.
array An array of vocabulary objects, indexed by vid.
function taxonomy_vocabulary_load_multiple(array $vids = NULL) {
return entity_load_multiple('taxonomy_vocabulary', $vids);
}