make notification email more html friendly

This commit is contained in:
2017-06-29 13:20:09 +10:00
parent 16e34ebfd1
commit 5f9465dd59

View File

@@ -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);
}
if(variable_get('booking_enable_html_mail', 0) == 1) {
return implode("\n<br />", $rows);
}
else {
return implode("\n", $rows);
}
}
/**