function taxonomy_term_load

Return the taxonomy term entity matching a term ID.

Parameters

$tid: A term's ID

Return value

Drupal\taxonomy\Term|false A taxonomy term entity, or FALSE if the term was not found. Results are statically cached.

11 calls to taxonomy_term_load()
EntityCrudHookTest::testTaxonomyTermHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy terms.
forum_confirm_delete in drupal/core/modules/forum/forum.admin.inc
Form constructor for confirming deletion of a forum taxonomy term.
forum_forum_load in drupal/core/modules/forum/forum.module
Returns a tree of all forums for a given taxonomy term ID.
forum_node_validate in drupal/core/modules/forum/forum.module
Implements hook_node_validate().
HooksTest::testTaxonomyTermHooks in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/HooksTest.php
Test hooks on CRUD of terms.

... See full list

File

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

Code

function taxonomy_term_load($tid) {
  if (!is_numeric($tid)) {
    return FALSE;
  }
  return entity_load('taxonomy_term', $tid);
}