function taxonomy_test_get_antonym

Return the antonym of the given term ID.

2 calls to taxonomy_test_get_antonym()
taxonomy_test_form_alter in modules/simpletest/tests/taxonomy_test.module
Implements hook_form_alter().
taxonomy_test_taxonomy_term_load in modules/simpletest/tests/taxonomy_test.module
Implements hook_taxonomy_term_load().

File

modules/simpletest/tests/taxonomy_test.module, line 105

Code

function taxonomy_test_get_antonym($tid) {
  return db_select('taxonomy_term_antonym', 'ta')->fields('ta', array(
    'name',
  ))
    ->condition('tid', $tid)
    ->execute()
    ->fetchField();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.