function taxonomy_get_term in Drupal 5
Same name and namespace in other branches
- 4 modules/taxonomy.module \taxonomy_get_term()
- 6 modules/taxonomy/taxonomy.module \taxonomy_get_term()
Return the term object matching a term ID.
Parameters
$tid: A term's ID
Return value
Object A term object. Results are statically cached.
10 calls to taxonomy_get_term()
- forum_confirm_delete in modules/
forum/ forum.module - Returns a confirmation page for deleting a forum taxonomy term.
- forum_get_topics in modules/
forum/ forum.module - forum_menu in modules/
forum/ forum.module - Implementation of hook_menu().
- forum_validate in modules/
forum/ forum.module - Implementation of hook_validate().
- taxonomy_admin_term_edit in modules/
taxonomy/ taxonomy.module - Page to edit a vocabulary term.
File
- modules/
taxonomy/ taxonomy.module, line 1169 - Enables the organization of content into categories.
Code
function taxonomy_get_term($tid) {
static $terms = array();
if (!isset($terms[$tid])) {
$terms[$tid] = db_fetch_object(db_query('SELECT * FROM {term_data} WHERE tid = %d', $tid));
}
return $terms[$tid];
}