make notification email more html friendly
This commit is contained in:
@@ -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('Net Amount Due: !payment', array('!payment' => $node->booking_total_pay_reqd));
|
||||||
$rows[] = t('Payment Type: !payment', array('!payment' => $payment_description_query->booking_price_descrip));
|
$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);
|
$rows[$key] = wordwrap($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(variable_get('booking_enable_html_mail', 0) == 1) {
|
||||||
|
return implode("\n<br />", $rows);
|
||||||
|
}
|
||||||
|
else {
|
||||||
return implode("\n", $rows);
|
return implode("\n", $rows);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user