You are here

function theme_messaging_template_body in Messaging 7

Theme message body

This is just a wrapper to decide which is the right template to use

1 theme call to theme_messaging_template_body()
messaging_template_element_info in messaging_template/messaging_template.module
Implements hook_element_info()

File

messaging_template/messaging_template.inc, line 531
Drupal Messaging Framework - Text filtering functions

Code

function theme_messaging_template_body($variables) {
  $element = $variables['element'];

  // First look for an alternate for sending method
  $themes[] = 'messaging_template_body_' . $element['#method'];
  switch ($element['#format']) {
    case MESSAGING_FORMAT_HTML:
      $themes[] = 'messaging_template_body_html';
      break;
    case MESSAGING_FORMAT_PLAIN:
    default:
      $themes[] = 'messaging_template_body_plain';
  }
  return theme($themes, $variables);
}