You are here

function messaging_sms_render_message in Messaging 5

Message Render callback

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

File

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

Code

function messaging_sms_render_message($message, $info) {

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

  // Now we do some clean up in the body that may contain new lines
  if ($message->body) {
    $message->body = str_replace("\n", ' ', $message->body);
  }
  return $message;
}