handle array value
This commit is contained in:
@@ -500,6 +500,8 @@ function _booking_email_get_preview_callback($form, $form_state) {
|
|||||||
case "registration":
|
case "registration":
|
||||||
$text = variable_get('booking_email_bookedin_text');
|
$text = variable_get('booking_email_bookedin_text');
|
||||||
watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $text, true)));
|
watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $text, true)));
|
||||||
|
//use the html value if it is set, otherwise use the plaintext input which is just a string
|
||||||
|
$text = isset($text['format']) ? $text['value'] : $text;
|
||||||
break;
|
break;
|
||||||
case "balance":
|
case "balance":
|
||||||
$text = variable_get('booking_email_paymentoutstanding_text');
|
$text = variable_get('booking_email_paymentoutstanding_text');
|
||||||
|
Reference in New Issue
Block a user