function taxonomy_get_synonym_root in Drupal 4
Same name and namespace in other branches
- 5 modules/taxonomy/taxonomy.module \taxonomy_get_synonym_root()
- 6 modules/taxonomy/taxonomy.module \taxonomy_get_synonym_root()
Return the term object that has the given string as a synonym.
File
- modules/
taxonomy.module, line 938 - Enables the organization of content into categories.
Code
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));
}