You are here

function messaging_xmpp_render in Messaging 6.2

Same name and namespace in other branches
  1. 6.4 messaging_xmpp/messaging_xmpp.module \messaging_xmpp_render()
  2. 6.3 messaging_xmpp/messaging_xmpp.module \messaging_xmpp_render()

Message Render callback

1 string reference to 'messaging_xmpp_render'
messaging_xmpp_messaging in messaging_xmpp/messaging_xmpp.module
Implementation of hook_messaging

File

messaging_xmpp/messaging_xmpp.module, line 165
XMPP Messsaging. Messaging method plug-in

Code

function messaging_xmpp_render($message, $info) {

  // rendering the message to get any additional pieces being put on
  $message = messaging_message_render($message, $info);

  // We apply a final filterting, stripping out all html tags
  $message->body = messaging_text_clean($message->body);
  $message->subject = messaging_text_clean($message->subject);
  return $message;
}