function views_handler_field_node_language::render
3.x views_handler_field_node_language.inc | views_handler_field_node_language::render($values) |
2.x views_handler_field_node_language.inc | views_handler_field_node_language::render($values) |
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field_node::render
File
- modules/
translation/ views_handler_field_node_language.inc, line 24
Class
- views_handler_field_node_language
- Field handler to translate a language into its readable form.
Code
function render($values) {
$languages = locale_language_list(empty($this->options['native_language']) ? 'name' : 'native');
$value = isset($languages[$values->{$this->field_alias}]) ? $languages[$values->{$this->field_alias}] : '';
return $this->render_link($value, $values);
}