You are here

function translation_nat_get_terms in Internationalization 5

Same name and namespace in other branches
  1. 5.3 translation/translation.module \translation_nat_get_terms()
  2. 5.2 translation/translation.module \translation_nat_get_terms()

Like nat_get_terms() but without caching

1 call to translation_nat_get_terms()
translation_nodeapi_nat in translation/translation.module
NAT (Node As Term) integration for node translations

File

translation/translation.module, line 353

Code

function translation_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;
}