function og_handler_field_language in Organic groups 5
Same name and namespace in other branches
- 5.8 og_views.inc \og_handler_field_language()
- 5.3 og_views.inc \og_handler_field_language()
- 5.7 og_views.inc \og_handler_field_language()
1 string reference to 'og_handler_field_language'
- og_views_tables in ./
og_views.inc - Implementation of the hook_views_tables()
File
- ./
og_views.inc, line 1284
Code
function og_handler_field_language($fieldinfo, $fielddata, $value, $data) {
global $locale;
$languages = module_invoke('locale', 'supported_languages', FALSE, TRUE);
// the default language is always first.
if ($languages['name'][$value] && $value != key($languages['name'])) {
return $languages['name'][$value];
}
}