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 