You are here

function taxonomy_revision_term_load in Taxonomy revision 7

Loads a taxonomy term revision.

Parameters

$tid: Term id of the term to be loaded.

$revision_id: Revision id of the term to be loaded.

Return value

mixed

1 call to taxonomy_revision_term_load()
taxonomy_revision_diffs_show in ./taxonomy_revision.pages.inc
Create a comparison for the term between versions 'old_revision_id' and 'new_revision_id'.

File

./taxonomy_revision.module, line 391
This is the main module file for the Taxonomy revision module.

Code

function taxonomy_revision_term_load($tid, $revision_id) {
  $terms = entity_load('taxonomy_term', array(
    $tid,
  ), array(
    'revision_id' => $revision_id,
  ));
  return reset($terms);
}