You are here

function _glossary_get_synonyms in Glossary 5.2

Same name and namespace in other branches
  1. 5 glossary.module \_glossary_get_synonyms()
  2. 6 glossary.module \_glossary_get_synonyms()
2 calls to _glossary_get_synonyms()
glossary_overview in ./glossary.module
_glossary_get_terms in ./glossary.module

File

./glossary.module, line 1212
Glossary terms will be automatically marked with links to their descriptions.

Code

function _glossary_get_synonyms($vid) {
  $result = db_query(db_rewrite_sql('SELECT ts.tid, ts.name FROM {term_synonym} ts JOIN {term_data} td USING(tid) WHERE td.vid=%d', 'td', 'tid'), $vid);
  while ($synonym = db_fetch_object($result)) {
    $synonyms[$synonym->tid][] = filter_xss($synonym->name);
  }
  return $synonyms;
}