taxonomy_get_term
- Versions
- 4.6 – 6
taxonomy_get_term($tid)
Return the term object matching a term ID.
Code
modules/taxonomy.module, line 746
<?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));
}
?>Login or register to post comments 