1 taxonomy.module taxonomy_term_load($tid)

Return the taxonomy term entity matching a term ID.

Parameters

$tid: A term's ID

Return value

TaxonomyTerm|false: A taxonomy term entity or FALSE if the term was not found. Results are statically cached.

File

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