function messaging_language in Messaging 7
Get language object from language code or from language
File
- ./
messaging.module, line 656
Code
function messaging_language($language) {
if (is_object($language)) {
return $language;
}
else {
$list = language_list();
return $language && isset($list[$language]) ? $list[$language] : language_default();
}
}