taxonomy_term_load
- Versions
- 7
taxonomy_term_load($tid)
Return the term object matching a term ID.
Parameters
$tid A term's ID
Return value
A term object. Results are statically cached.
Code
modules/taxonomy/taxonomy.module, line 908
<?php
function taxonomy_term_load($tid) {
if (!is_numeric($tid)) {
return FALSE;
}
$term = taxonomy_term_load_multiple(array($tid), array());
return $term ? $term[$tid] : FALSE;
}
?>Login or register to post comments 