1.20.x taxonomy.module | taxonomy_term_load($tid) |
Return the taxonomy term entity matching a term ID.
Parameters
$tid: A term's ID
Return value
TaxonomyTerm|false: A taxonomy term entity or FALSE if the term was not found. Results are statically cached.
File
- modules/
taxonomy/ taxonomy.module, line 1403 - Enables the organization of content into categories.
Code
function taxonomy_term_load($tid) {
if (!is_numeric($tid)) {
return FALSE;
}
$term = taxonomy_term_load_multiple(array($tid), array());
return $term ? $term[$tid] : FALSE;
}