You are here

function registration_mail in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 registration.module \registration_mail()
  2. 7.2 registration.module \registration_mail()
  3. 7 registration.module \registration_mail()

Implements hook_mail().

File

./registration.module, line 981

Code

function registration_mail($key, &$message, $params) {
  $subject = $params['subject'];
  $body = $params['message'];
  $message['subject'] .= str_replace(array(
    "\r",
    "\n",
  ), '', $subject);
  $message['body'][] = drupal_html_to_text($body);
}