function taxonomy_vocabulary_load_multiple

taxonomy_vocabulary_load_multiple(array $vids = NULL)

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.

Deprecated

in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Vocabulary::loadMultiple().

See also

entity_load_multiple()

File

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

Code

function taxonomy_vocabulary_load_multiple(array $vids = NULL) {
  return Vocabulary::loadMultiple($vids);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.module/function/taxonomy_vocabulary_load_multiple/8.1.x