You are here

i18nviews_handler_field_term_language.inc in Internationalization Views 6.2

Same filename and directory in other branches
  1. 6.3 includes/i18nviews_handler_field_term_language.inc

File

includes/i18nviews_handler_field_term_language.inc
View source
<?php

/**
 * Field handler to provide simple renderer that shows term language.
 */
class i18nviews_handler_field_term_language extends views_handler_field_taxonomy {
  function render($values) {
    $languages = locale_language_list();
    $value = isset($languages[$values->{$this->field_alias}]) ? $languages[$values->{$this->field_alias}] : '';
    return $this
      ->render_link($value, $values);
  }

}

Classes

Namesort descending Description
i18nviews_handler_field_term_language Field handler to provide simple renderer that shows term language.