You are here

function _mandrill_remove_newlines in Mandrill 6

@file Class for sending mails via Mandrill.

1 string reference to '_mandrill_remove_newlines'
MandrillMailSystem::format in ./mandrill.mail.inc
Concatenate and wrap the email body for either plain-text or HTML emails.

File

./mandrill.mail.inc, line 8
Class for sending mails via Mandrill.

Code

function _mandrill_remove_newlines($matches) {
  return str_replace(array(
    "\n",
    "\r",
  ), ' ', $matches[0]);
}