You are here

function messaging_sms_render in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 messaging_sms/messaging_sms.module \messaging_sms_render()
  2. 6 messaging_sms/messaging_sms.module \messaging_sms_render()
  3. 6.2 messaging_sms/messaging_sms.module \messaging_sms_render()

Message Render callback

1 string reference to 'messaging_sms_render'
messaging_sms_messaging in messaging_sms/messaging_sms.module
Implementation of hook_messaging

File

messaging_sms/messaging_sms.module, line 31
SMS Messsaging using SMS Framework. Messaging method plug-in

Code

function messaging_sms_render($message, $info) {

  // We need to apply filtering first or run through the render function
  $content = messaging_message_render($message, $info);

  // Now we do some clean up in the body that may contain new lines, replace them with spaces
  if ($content->body) {
    $message->content = messaging_text_clean($content->body, ' ');
  }
  return $content;
}