function views_handler_field_locale_group::render

Same name in other branches
  1. 7.x-3.x modules/locale/views_handler_field_locale_group.inc \views_handler_field_locale_group::render()

Overrides views_handler_field::render

File

modules/locale/views_handler_field_locale_group.inc, line 9

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);
    $value = $this->get_value($values);
    return isset($groups[$value]) ? $groups[$value] : '';
}