1.20.x taxonomy.module taxonomy_term_load_multiple($tids = array(), $conditions = array())

Load multiple taxonomy terms based on certain conditions.

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

Parameters

$tids: An array of taxonomy term IDs.

$conditions: (deprecated) An associative array of conditions on the {taxonomy_term} table, where the keys are the database fields and the values are the values those fields must have. Instead, it is preferable to use EntityFieldQuery to retrieve a list of entity IDs loadable by this function.

Return value

TaxonomyTerm[]: An array of taxonomy term entities, indexed by tid. When no results are found, an empty array is returned.

See also

entity_load()

EntityFieldQuery

File

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

Code

function taxonomy_term_load_multiple($tids = array(), $conditions = array()) {
  return entity_load('taxonomy_term', $tids, $conditions);
}