taxonomy_term_load

Versions
7
taxonomy_term_load($tid)

Return the term object matching a term ID.

Parameters

$tid A term's ID

Return value

A term object. Results are statically cached.

▾ 7 functions call taxonomy_term_load()

forum_confirm_delete in modules/forum/forum.admin.inc
Returns a confirmation page for deleting a forum taxonomy term.
forum_node_validate in modules/forum/forum.module
Implement hook_node_validate().
forum_url_outbound_alter in modules/forum/forum.module
Implement hook_url_outbound_alter().
taxonomy_field_widget in modules/taxonomy/taxonomy.module
Implement hook_field_widget().
taxonomy_get_parents_all in modules/taxonomy/taxonomy.module
Find all ancestors of a given term ID.
taxonomy_term_confirm_delete in modules/taxonomy/taxonomy.admin.inc
Form builder for the term delete form.
taxonomy_term_delete in modules/taxonomy/taxonomy.module
Delete a term.

Code

modules/taxonomy/taxonomy.module, line 908

<?php
function taxonomy_term_load($tid) {
  if (!is_numeric($tid)) {
    return FALSE;
  }
  $term = taxonomy_term_load_multiple(array($tid), array());
  return $term ? $term[$tid] : FALSE;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.