You are here

function Messaging_Message::get_language in Messaging 7

Same name and namespace in other branches
  1. 6.3 classes/messaging_message.class.inc \Messaging_Message::get_language()

Get language object

File

./messaging.message.inc, line 348
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function get_language() {
  if (!empty($this->language) && ($list = language_list()) && isset($list[$this->language])) {
    return $list[$this->language];
  }
  else {
    return language_default();
  }
}