You are here

function Messaging_Mail_Method::render_body in Messaging 7

Render message body. This will produce an array of lines to be formatted later

1 call to Messaging_Mail_Method::render_body()
Messaging_Mail_Method::mail_build in messaging_mail/messaging_mail.inc
Rebuild message in Drupal mail format, right before sending

File

messaging_mail/messaging_mail.inc, line 38
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Mail_Method
Base class for mail sending methods

Code

function render_body($text) {
  $body = array();
  foreach (element_children($text) as $key) {
    $body[$key] = drupal_render($text[$key]);
  }
  return $body;
}