1 taxonomy_test.module taxonomy_test_get_antonym($tid)

Return the antonym of the given term ID.

File

core/modules/simpletest/tests/taxonomy_test.module, line 104
Test module for Taxonomy hooks and functions not used in core.

Code

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