You are here

function lexicon_term in Lexicon 6

1 string reference to 'lexicon_term'
lexicon_menu in ./lexicon.module
Implementation of hook_menu().

File

./lexicon.module, line 358
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_term($tid) {
  $result = db_query(db_rewrite_sql('SELECT * FROM {term_data} t WHERE t.tid=%d', 't', 'tid'), $tid);
  $output .= '<div class="lexicon-list">' . "\n";
  while ($row = db_fetch_object($result)) {
    $term = taxonomy_get_term($row->tid);
    drupal_set_title(check_plain($term->name));
    $vid = $row->vid;
    $output .= '<dl>' . theme('lexicon_overview_item', $vid, $term, TRUE) . '</dl>';
  }
  $output .= "</div>\n";
  $tree = taxonomy_get_tree($vid);
  $alphabar = _lexicon_alphabar($vid, $tree);
  $output = $alphabar . '<br/>' . $output;
  return $output;
}