function views_handler_field_locale_language::render

Overrides views_handler_field::render

File

modules/locale/views_handler_field_locale_language.inc, line 41

Class

views_handler_field_locale_language
Field handler to translate a language into its readable form.

Code

public function render($values) {
    $languages = views_language_list(empty($this->options['native_language']) ? 'name' : 'native');
    $value = $this->get_value($values);
    return isset($languages[$value]) ? $languages[$value] : '';
}