Add custom counts to admin page
This commit is contained in:
@@ -57,6 +57,15 @@ function booking_admin() {
|
||||
'#required' => TRUE,
|
||||
'#default_value' => variable_get('booking_logistics_email',variable_get('site_mail', ini_get('sendmail_from'))),
|
||||
);
|
||||
$form['email']['booking_custom_email_count'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Number of custom email definitions'),
|
||||
'#description' => t("Set to the number of custom email definitions to use."),
|
||||
'#size' => 3,
|
||||
'#maxlength' => 3,
|
||||
'#default_value' => variable_get('booking_custom_email_count','5'),
|
||||
);
|
||||
|
||||
$form['attendee'] = array (
|
||||
'#type' => 'fieldset',
|
||||
'#title' => 'Attendee restrictions',
|
||||
@@ -211,7 +220,7 @@ function booking_admin() {
|
||||
$form['misc']['booking_studygroup_count'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Number of study groups'),
|
||||
'#description' => t("Total number of study groups in use."),
|
||||
'#description' => t("Total number of study groups in use. Make sure this matches the actual number defined."),
|
||||
'#size' => 3,
|
||||
'#maxlength' => 3,
|
||||
'#default_value' => variable_get('booking_studygroup_count','0'),
|
||||
@@ -273,7 +282,7 @@ function booking_manual_email()
|
||||
$email_options_array['travelcomplete'] = 'Manual Travel Form Complete';
|
||||
|
||||
//add in the custom email types
|
||||
for ($i = 1; $i <= CUSTOM_EMAIL_COUNT; $i++)
|
||||
for ($i = 1; $i <= variable_get('booking_custom_email_count','5'); $i++)
|
||||
{
|
||||
$email_options_array['custom' . $i] = variable_get('booking_email_subject_custom' . $i, $event->booking_eventname . ' custom ' . $i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user