You are here

function message_notify_message_view in Message Notify 7

Implements hook_message_view().

File

./message_notify.module, line 78
Message notify.

Code

function message_notify_message_view($message, $view_mode, $langcode) {
  if ($message
    ->getType()->category == 'message_type_email') {
    $message->content['subject'] = array(
      // Add the subject field.
      '#markup' => $message
        ->getText($langcode, array(
        'field name' => 'message_text_subject',
      )),
    );
  }
}