function taxonomy_term_load

Return the term object matching a term ID.

Parameters

$tid: A term's ID

Return value

A taxonomy term object, or FALSE if the term was not found. Results are statically cached.

12 calls to taxonomy_term_load()

File

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

Code

function taxonomy_term_load($tid) {
  if (!is_numeric($tid)) {
    return FALSE;
  }
  $term = taxonomy_term_load_multiple(array(
    $tid,
  ), array());
  return $term ? $term[$tid] : FALSE;
}