You are here

function Notifications_Template::get_body in Notifications 6.3

Get body parts, in this case they are 'header', 'main', 'footer'

Parameters

$method: Sending method

$language: Language code

Return value

string or array() Body text or text parts for renderin

Overrides Messaging_Template::get_body

See also

Messaging_Message_Template

File

classes/notifications_template.class.inc, line 81
Notification Template classes

Class

Notifications_Template
Notifications Template

Code

function get_body($method = NULL, $language = NULL) {
  $body = array();
  foreach (array(
    'header',
    'main',
    'footer',
  ) as $key) {
    $body[$key] = $this
      ->get_text($key, $method, $language);
  }
  return $body;
}