From d4ac574142cb695ee8b5328293302ca6ab49d8b0 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 27 Jun 2017 12:19:35 +1000 Subject: [PATCH] get html textarea value --- booking.emails.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booking.emails.inc b/booking.emails.inc index 25864cc..b26b645 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -135,6 +135,8 @@ function _booking_regn_notifyonly_email($node, $balance_payment) { //$contact_message = token_replace(variable_get('booking_email_waitinglist_text'), $tokens); } + //Use the value of the field if it is an array from a HTML textarea + $body = isset($body['format']) ? $body['value'] : $body; watchdog('booking_debug', "
Email generation:\n@info
", array('@info' => print_r( $body, true))); //$contact_message .= "\n\n" . t("!details", array('!details' => _booking_details_email_summary($node))); return token_replace($body, $tokens);