From 5f9465dd598257b6c96d41141ae15eaed223d9b9 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 13:20:09 +1000 Subject: [PATCH] make notification email more html friendly --- booking.helper.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index 147776f..93ec1cd 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1383,9 +1383,16 @@ function _booking_details_email_summary($node) { $rows[] = t('Net Amount Due: !payment', array('!payment' => $node->booking_total_pay_reqd)); $rows[] = t('Payment Type: !payment', array('!payment' => $payment_description_query->booking_price_descrip)); - foreach ($rows as $key => $value) + foreach ($rows as $key => $value) { $rows[$key] = wordwrap($value); - return implode("\n", $rows); + } + + if(variable_get('booking_enable_html_mail', 0) == 1) { + return implode("\n
", $rows); + } + else { + return implode("\n", $rows); + } } /**