function tripal_feature_load_synonyms
1.x tripal_feature.module | tripal_feature_load_synonyms($feature_id) |
Related topics
File
- tripal_feature/
tripal_feature.module, line 1007 - @todo Add file header description
Code
function tripal_feature_load_synonyms($feature_id) {
$sql = "SELECT S.name " .
"FROM {Feature_Synonym} FS " .
" INNER JOIN {Synonym} S " .
" ON FS.synonym_id = S.Synonym_id " .
"WHERE FS.feature_id = %d " .
"ORDER BY S.name ";
$results = chado_query($sql, $feature_id);
$synonyms = array();
$i = 0;
while ($synonym = db_fetch_object($results)) {
$synonyms[$i++] = $synonym;
}
return $synonyms;
}