You are here

function i18nviews_handler_field_taxonomy::pre_render in Internationalization Views 6.2

Same name and namespace in other branches
  1. 6.3 includes/i18nviews_handler_field_taxonomy.inc \i18nviews_handler_field_taxonomy::pre_render()

File

includes/i18nviews_handler_field_taxonomy.inc, line 12

Class

i18nviews_handler_field_taxonomy
Field handler to provide simple renderer that allows linking to a taxonomy term.

Code

function pre_render($values) {
  foreach ($values as $key => $value) {
    if (isset($value->{$this->field_alias})) {
      $tid = $value->{$this->aliases['tid']};
      $values[$key]->{$this->field_alias} = tt('taxonomy:term:' . $tid . ':name', $value->{$this->field_alias});
    }
  }
}