function _lexicon_get_synonyms in Lexicon 6
Same name and namespace in other branches
- 7 lexicon.module \_lexicon_get_synonyms()
2 calls to _lexicon_get_synonyms()
File
- ./
lexicon.module, line 1241 - Lexicon is used to create lists of terms and definitions to use on a website and optionally mark them in the content with an indicator.
Code
function _lexicon_get_synonyms($vid) {
$result = db_query(db_rewrite_sql('SELECT ts.tid, ts.name FROM {term_synonym} ts JOIN {term_data} t USING(tid) WHERE t.vid=%d', 't', 'tid'), $vid);
while ($synonym = db_fetch_object($result)) {
$synonyms[$synonym->tid][] = filter_xss($synonym->name);
}
return $synonyms;
}