You are here

function message_property_get_text in Message 7

Entity property info getter callback for getting the final message text.

1 string reference to 'message_property_get_text'
MessageMetadataController::entityPropertyInfo in ./message.info.inc

File

./message.module, line 983
API functions to manipulate messages.

Code

function message_property_get_text($message, array $options) {
  $langcode = isset($options['language']) ? $options['language']->language : LANGUAGE_NONE;
  return $message
    ->getText($langcode);
}