function views_handler_field_node_language::render
Same name in other branches
- 7.x-3.x modules/locale/views_handler_field_node_language.inc \views_handler_field_node_language::render()
Overrides views_handler_field_node::render
File
-
modules/
translation/ views_handler_field_node_language.inc, line 26
Class
- views_handler_field_node_language
- Field handler to translate a language into its readable form.
Code
function render($values) {
$languages = views_language_list(empty($this->options['native_language']) ? 'name' : 'native');
$value = $this->get_value($values);
$value = isset($languages[$value]) ? $languages[$value] : '';
return $this->render_link($value, $values);
}