views_handler_field_locale_group.inc in Views (for Drupal 7) 6.2
Same filename and directory in other branches
File
modules/locale/views_handler_field_locale_group.incView source
<?php
/**
* Field handler to translate a group into its readable form.
*/
class views_handler_field_locale_group extends views_handler_field {
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}] : '';
}
}
Classes
Name | Description |
---|---|
views_handler_field_locale_group | Field handler to translate a group into its readable form. |