You are here

function i18ntaxonomy_nat_get_terms in Internationalization 6

Like nat_get_terms() but without caching.

File

i18ntaxonomy/i18ntaxonomy.module, line 683
i18n taxonomy module

Code

function i18ntaxonomy_nat_get_terms($nid) {
  $return = array();
  $result = db_query("SELECT td.* FROM {nat} n INNER JOIN {term_data} td USING (tid) WHERE n.nid = %d", $nid);
  while ($term = db_fetch_object($result)) {
    $return[$term->tid] = $term;
  }
  return $return;
}