Same name and namespace in other branches
  1. 4.7.x modules/taxonomy.module \taxonomy_get_term()
  2. 5.x modules/taxonomy/taxonomy.module \taxonomy_get_term()
  3. 6.x modules/taxonomy/taxonomy.module \taxonomy_get_term()

Return the term object matching a term ID.

8 calls to taxonomy_get_term()
forum_get_topics in modules/forum.module
forum_validate in modules/forum.module
Implementation of hook_validate().
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().

... See full list

File

modules/taxonomy.module, line 746
Enables the organization of content into categories.

Code

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));
}