function entity_metadata_locale_get_user_language in Entity API 7
Getter callback for getting the preferred user language.
1 string reference to 'entity_metadata_locale_get_user_language'
- entity_metadata_locale_entity_property_info_alter in modules/
locale.info.inc - Implements hook_entity_property_info_alter() on top of locale module.
File
- modules/
callbacks.inc, line 118 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_locale_get_user_language($account, array $options, $name) {
return user_preferred_language($account)->language;
}