taxonomy_get_synonym_root

Versions
4.6 – 6
taxonomy_get_synonym_root($synonym)

Return the term object that has the given string as a synonym.

Code

modules/taxonomy/taxonomy.module, line 1046

<?php
function taxonomy_get_synonym_root($synonym) {
  return db_fetch_object(db_query("SELECT * FROM {term_synonym} s, {term_data} t WHERE t.tid = s.tid AND s.name = '%s'", $synonym));
}
?>
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.