function views_handler_field_locale_language::render in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/locale/views_handler_field_locale_language.inc \views_handler_field_locale_language::render()
- 7.3 modules/locale/views_handler_field_locale_language.inc \views_handler_field_locale_language::render()
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
locale/ views_handler_field_locale_language.inc, line 24
Class
- views_handler_field_locale_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');
return isset($languages[$values->{$this->field_alias}]) ? $languages[$values->{$this->field_alias}] : '';
}