| Versions | |
|---|---|
| 4.7 – 5 | taxonomy_get_term($tid) |
| 6 | taxonomy_get_term($tid, $reset = FALSE) |
Return the term object matching a term ID.
modules/
<?php
function taxonomy_get_term($tid) {
// simple cache using a static var?
return db_fetch_object(db_query('SELECT * FROM {term_data} WHERE tid = %d', $tid));
}
?>