1 views_handler_argument_locale_group.inc views_handler_argument_locale_group::locale_group($group)

File

core/modules/locale/views/views_handler_argument_locale_group.inc, line 34
Definition of views_handler_argument_locale_group.

Class

views_handler_argument_locale_group
Argument handler to accept a language.

Code

function locale_group($group) {
  $groups = module_invoke_all('locale', 'groups');
  // Sort the list.
  asort($groups);
  return isset($groups[$group]) ? $groups[$group] : t('Unknown group');
}