taxonomy_term_load_multiple

Versions
7
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.

See also

entity_load()

Parameters

$tids An array of taxonomy term IDs.

$conditions An array of conditions to add to the query.

Return value

An array of term objects, indexed by tid.

▾ 4 functions call taxonomy_term_load_multiple()

taxonomy_autocomplete_validate in modules/taxonomy/taxonomy.module
Form element validate handler for taxonomy term autocomplete element.
taxonomy_field_formatter_prepare_view in modules/taxonomy/taxonomy.module
Implement hook_field_load().
taxonomy_get_term_by_name in modules/taxonomy/taxonomy.module
Try to map a string to an existing term, as for glossary use.
taxonomy_term_load in modules/taxonomy/taxonomy.module
Return the term object matching a term ID.

Code

modules/taxonomy/taxonomy.module, line 860

<?php
function taxonomy_term_load_multiple($tids = array(), $conditions = array()) {
  return entity_load('taxonomy_term', $tids, $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.