move mail footer to email admin page

This commit is contained in:
2017-07-01 22:44:51 +10:00
parent 0fd7f95baf
commit 627b1767e8
2 changed files with 12 additions and 8 deletions

View File

@@ -75,14 +75,7 @@ function booking_admin() {
t('Yes')
),
'#default_value' => variable_get('booking_enable_html_mail', 0),
);
$form['emails']['booking_html_mail_footer'] = array(
'#title' => t('Footer text for HTML email'),
'#description' => t('Enter HTML to go in the footer of the email template (above the social media icons).'),
'#default_value' => isset(variable_get('booking_html_mail_footer')['value']) ? variable_get('booking_html_mail_footer')['value'] : variable_get('booking_html_mail_footer', '<p>&nbsp;</p>'),
'#type' => 'text_format',
'#format' => 'full_html',
);
);
$form['email']['booking_custom_email_count'] = array(
'#type' => 'textfield',
'#title' => t('Number of custom email definitions'),

View File

@@ -70,6 +70,17 @@ function booking_emails_admin() {
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
//if HTML mail is enabled, allow user to specify footer
if(variable_get('booking_enable_html_mail', 0) == 1) {
$form['emails']['booking_html_mail_footer'] = array(
'#title' => t('Footer text for HTML email'),
'#description' => t('Enter HTML to go in the footer of the email template (above the social media icons).'),
'#default_value' => isset(variable_get('booking_html_mail_footer')['value']) ? variable_get('booking_html_mail_footer')['value'] : variable_get('booking_html_mail_footer', '<p>&nbsp;</p>'),
'#type' => 'text_format',
'#format' => 'full_html',
);
}
$form['emails']['booking_email_notification_text'] = array(
'#title' => t('Notification Email'),
'#description' => t('Email to send to the notification email address (defined in general configuration) when a person has registered'),