function glossary_term in Glossary 5
Same name and namespace in other branches
- 5.2 glossary.module \glossary_term()
- 6 glossary.module \glossary_term()
- 7 glossary.module \glossary_term()
1 string reference to 'glossary_term'
- glossary_menu in ./
glossary.module - Implementation of hook_menu().
File
- ./
glossary.module, line 238
Code
function glossary_term($tid) {
$result = db_query('SELECT * FROM {term_data} WHERE tid = %d', $tid);
$output .= '<dl class="glossary-list">' . "\n";
while ($row = db_fetch_object($result)) {
$term = taxonomy_get_term($row->tid);
$output .= theme('glossary_overview_item', $term, true);
$vid = $row->vid;
}
$output .= "</dl>\n";
$tree = taxonomy_get_tree($vid);
$alphabar = _glossary_alphabar($vid, $tree);
$output = $alphabar . '<br/>' . $output;
return $output;
}