function taxonomy_get_term

You are here

4.6 taxonomy.module taxonomy_get_term($tid)
4.7 taxonomy.module taxonomy_get_term($tid)
5 taxonomy.module taxonomy_get_term($tid)
6 taxonomy.module taxonomy_get_term($tid, $reset = FALSE)

Return the term object matching a term ID.

10 calls to taxonomy_get_term()
forum_get_topics in modules/forum.module
forum_menu in modules/forum.module
Implementation of hook_menu().
forum_validate in modules/forum.module
Implementation of hook_validate().
taxonomy_admin_term_edit in modules/taxonomy.module
Page to list terms for a vocabulary
taxonomy_del_term in modules/taxonomy.module

... See full list

File

modules/taxonomy.module, line 1027
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));
}