function views_handler_field_locale_group::render in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/locale/views_handler_field_locale_group.inc \views_handler_field_locale_group::render()
- 7.3 modules/locale/views_handler_field_locale_group.inc \views_handler_field_locale_group::render()
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
locale/ views_handler_field_locale_group.inc, line 7
Class
- views_handler_field_locale_group
- Field handler to translate a group into its readable form.
Code
function render($values) {
$groups = module_invoke_all('locale', 'groups');
// Sort the list.
asort($groups);
return isset($groups[$values->{$this->field_alias}]) ? $groups[$values->{$this->field_alias}] : '';
}