test more fields

This commit is contained in:
2017-06-27 20:50:41 +10:00
parent 298ca2d48a
commit 39f174401a

View File

@@ -80,25 +80,25 @@ function booking_emails_admin() {
$form['emails']['booking_email_bookedin_text'] = array( $form['emails']['booking_email_bookedin_text'] = array(
'#title' => t('Registration Successful Email'), '#title' => t('Registration Successful Email'),
'#description' => t('Text to use in an email indicating the person has booked in, paid their deposit and is not on the waiting list'), '#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' => $form_type == 'text_format' ? variable_get('booking_email_bookedin_text')['value'] : variable_get('booking_email_bookedin_text'), '#default_value' => $form_type == 'text_format' ? variable_get('booking_email_bookedin_text')['value'] : variable_get('booking_email_bookedin_text', $default_email_text),
'#type' => $form_type, '#type' => $form_type,
'#format' => $form_format, '#format' => $form_format,
); );
$form['emails']['booking_email_regn_complete_text'] = array( $form['emails']['booking_email_regn_complete_text'] = array(
'#title' => t('Payment Complete Email'), '#title' => t('Payment Complete Email'),
'#type' => 'textarea',
//'#format' => 'full_html',
'#description' => t('Email text to indicate a person has booked in, fully paid and is not on the waiting list. ' . '#description' => t('Email text to indicate a person has booked in, fully paid and is not on the waiting list. ' .
'This will be sent either at initial registration if the full amount is paid, or when the balance is paid.'), 'This will be sent either at initial registration if the full amount is paid, or when the balance is paid.'),
'#default_value' => variable_get('booking_email_regn_complete_text', $booking_email_regn_complete_text), '#default_value' => $form_type == 'text_format' ? variable_get('booking_email_regn_complete_text')['value'] : variable_get('booking_email_regn_complete_text', $booking_email_regn_complete_text),
'#type' => $form_type,
'#format' => $form_format,
); );
$form['emails']['booking_email_waitinglist_text'] = array( $form['emails']['booking_email_waitinglist_text'] = array(
'#title' => t('Registration on Waiting List Email'), '#title' => t('Registration on Waiting List Email'),
'#description' => t('Email text to indicate a person has registered but is on the waiting list. ' . '#description' => t('Email text to indicate a person has registered but is on the waiting list. ' .
'This will be sent instead of the Registration Successful or Registration Complete emails if the person is on the waiting list.'), 'This will be sent instead of the Registration Successful or Registration Complete emails if the person is on the waiting list.'),
'#type' => 'textarea', '#default_value' => $form_type == 'text_format' ? variable_get('booking_email_waitinglist_text')['value'] : variable_get('booking_email_waitinglist_text', $booking_email_waitinglist_text),
//'#format' => 'full_html', '#type' => $form_type,
'#default_value' => variable_get('booking_email_waitinglist_text', $booking_email_waitinglist_text), '#format' => $form_format,
); );
$form['emails']['booking_email_partialpayment_received_text'] = array( $form['emails']['booking_email_partialpayment_received_text'] = array(
'#title' => t('Email text to send a person thanking them for their partial payment'), '#title' => t('Email text to send a person thanking them for their partial payment'),