/** * Fetch the preferred language of a specific user. * * @param int $userId * @return array GalleryStatus a status code * string code of preferred locale */ function fetchLanguageCodeForUser($userId) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryUserHelper_medium.class'); return GalleryUserHelper_medium::fetchLanguageCodeForUser($userId); }