i18nviews_handler_field_term_description.inc in Internationalization Views 6.2
File
includes/i18nviews_handler_field_term_description.inc
View source
<?php
class i18nviews_handler_field_term_description extends views_handler_field_markup {
function construct() {
parent::construct();
$this->additional_fields['tid'] = 'tid';
}
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 . ':description', $value->{$this->field_alias});
}
}
}
}