test full_html for textareas

This commit is contained in:
2017-06-27 08:29:21 +10:00
parent d88df40702
commit ec7a9ea0d8
4 changed files with 17 additions and 27 deletions

View File

@@ -112,20 +112,25 @@ function _booking_regn_notifyonly_email($node, $balance_payment) {
function _booking_registration_email_generate($node, $waiting_list, $balance_payment, $manual) {
global $event;
$tokens = booking_define_personspecific_tokens($node);
$body = "";
if ($balance_payment == True) {
$contact_message = token_replace(variable_get('booking_email_regn_complete_text'), $tokens);
$body = variable_get('booking_email_regn_complete_text');
//$contact_message = token_replace(variable_get('booking_email_regn_complete_text'), $tokens);
}
elseif ($waiting_list == False) {
$contact_message = token_replace(variable_get('booking_email_bookedin_text'), $tokens);
$body = variable_get('booking_email_bookedin_text');
//$contact_message = token_replace(variable_get('booking_email_bookedin_text'), $tokens);
}
else {
//booking is on the waiting list
$contact_message = token_replace(variable_get('booking_email_waitinglist_text'), $tokens);
$body = variable_get('booking_email_waitinglist_text');
//$contact_message = token_replace(variable_get('booking_email_waitinglist_text'), $tokens);
}
watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $body, true)));
//$contact_message .= "\n\n" . t("!details", array('!details' => _booking_details_email_summary($node)));
return $contact_message;
return token_replace($body, $tokens);
}