You are here

function notifications_tags_get_tree in Notifications 6.2

Same name and namespace in other branches
  1. 6.3 notifications_tags/notifications_tags.module \notifications_tags_get_tree()

Quick get list of term data from tids indexed by vocabulary, tid

1 call to notifications_tags_get_tree()
notifications_tags_user_form in notifications_tags/notifications_tags.module
Returns the taxonomy subscription form

File

notifications_tags/notifications_tags.module, line 319
Subscriptions to taxonomy terms

Code

function notifications_tags_get_tree($tids) {
  $list = array();
  if ($tids) {
    $result = db_query('SELECT * FROM {term_data} WHERE tid IN (' . db_placeholders($tids) . ')', $tids);
    while ($term = db_fetch_object($result)) {
      $list[$term->vid][$term->tid] = $term;
    }
  }
  return $list;
}