test full_html for textareas
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user