This commit is contained in:
2017-06-27 20:28:46 +10:00
parent d0f8d44516
commit 4768fe7ba1
3 changed files with 35 additions and 4 deletions

View File

@@ -47,6 +47,18 @@ function booking_emails_admin() {
"Love in Jesus,\n[booking:eventname] Registrations Team.";
$booking_email_notcoming_demotion = "";
$booking_email_paymentoutstanding_married_text = "";
if(variable_get('booking_enable_html_mail', 0) == 1) {
$textarea_defaults = array(
'#type' => 'text_format',
'#format' => 'full_html',
);
}
else {
$textarea_defaults = array(
'#type' => 'textarea',
);
}
//include the token definitions
$form['tokens'] = array(
@@ -70,12 +82,10 @@ function booking_emails_admin() {
);
$form['emails']['booking_email_bookedin_text'] = array(
'#title' => t('Registration Successful Email'),
//'#type' => 'textarea',
'#type' => 'text_format',
'#format' => 'full_html',
'#description' => t('Text to use in an email indicating the person has booked in, paid their deposit and is not on the waiting list'),
'#default_value' => variable_get('booking_email_bookedin_text', $default_email_text),
);
$form['emails']['booking_email_bookedin_text'][] = $textarea_defaults;
$form['emails']['booking_email_regn_complete_text'] = array(
'#title' => t('Payment Complete Email'),
'#type' => 'textarea',