You are here

function Messaging_Message::get_language in Messaging 6.3

Same name and namespace in other branches
  1. 7 messaging.message.inc \Messaging_Message::get_language()

Get language as object

1 call to Messaging_Message::get_language()
Messaging_Message::render in classes/messaging_message.class.inc
Render the message for sending method

File

classes/messaging_message.class.inc, line 290
Drupal Messaging Framework - Default class file

Class

Messaging_Message
Message class

Code

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