taxonomy_get_term

Versions
4.6 – 6
taxonomy_get_term($tid)

Return the term object matching a term ID.

▾ 11 functions call taxonomy_get_term()

forum_admin in modules/forum.module
Administration page which allows maintaining forums
forum_get_topics in modules/forum.module
forum_validate in modules/forum.module
Implementation of hook_validate().
taxonomy_admin in modules/taxonomy.module
Menu callback; dispatches to the proper taxonomy administration function.
taxonomy_del_term in modules/taxonomy.module
taxonomy_get_parents_all in modules/taxonomy.module
Find all ancestors of a given term ID.
taxonomy_link in modules/taxonomy.module
Implementation of hook_link().
taxonomy_select_nodes in modules/taxonomy.module
Finds all nodes that match selected taxonomy conditions.
taxonomy_term_page in modules/taxonomy.module
Menu callback; displays all nodes associated with a term.
_forum_confirm_delete in modules/forum.module
Returns a confirmation page for deleting a forum taxonomy term
_taxonomy_confirm_del_term in modules/taxonomy.module

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.