function Messaging_Message::get_text in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.message.inc \Messaging_Message::get_text()
Build a simple text with message subject and body
Parameters
$glue: Separator to glue subject and body together
File
- includes/
messaging_message.class.inc, line 653 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
function get_text($glue = ' ') {
$parts = array(
trim($this
->get_subject()),
trim($this
->get_body()),
);
$parts = array_filter($parts);
$text = $parts ? implode($glue, $parts) : '';
return $text;
}