Separate email definitions
This commit is contained in:
@@ -323,7 +323,7 @@ $booking_registration_intro_text = variable_get('booking_registration_intro_text
|
||||
/*Text for emails*/
|
||||
$form['emails'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => 'Email Text Definitions',
|
||||
'#title' => 'Builtin Email Text Definitions',
|
||||
'#collapsible' => TRUE,
|
||||
'#collapsed' => TRUE,
|
||||
);
|
||||
@@ -408,20 +408,28 @@ $booking_registration_intro_text = variable_get('booking_registration_intro_text
|
||||
'#description' => t(''),
|
||||
'#default_value' => variable_get('booking_email_missedpayment', ''),
|
||||
);
|
||||
|
||||
/*Text for emails*/
|
||||
$form['custom-emails'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => 'Custom Email Text Definitions',
|
||||
'#collapsible' => TRUE,
|
||||
'#collapsed' => TRUE,
|
||||
);
|
||||
|
||||
//add a bunch of custom emails
|
||||
for ($i = 1; $i <= variable_get('booking_custom_email_count','5'); $i++)
|
||||
{
|
||||
$subject_fieldname = 'booking_email_subject_custom' . $i;
|
||||
$body_fieldname = 'booking_email_custom' . $i;
|
||||
$form['emails'][$subject_fieldname] = array (
|
||||
$form['custom-emails'][$subject_fieldname] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Subject line for Custom Email ' . $i),
|
||||
'#size' => 150,
|
||||
'#maxlength' => 300,
|
||||
'#default_value' => variable_get($subject_fieldname,'[booking:eventname]'),
|
||||
);
|
||||
$form['emails'][$body_fieldname] = array(
|
||||
$form['custom-emails'][$body_fieldname] = array(
|
||||
'#title' => t('Email text for custom email ' . $i),
|
||||
'#type' => 'textarea',
|
||||
'#description' => t(''),
|
||||
|
Reference in New Issue
Block a user