You are here

function messaging_xmpp_render in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 messaging_xmpp/messaging_xmpp.module \messaging_xmpp_render()
  2. 6.2 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
  $content = messaging_message_render($message, $info);

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