move mail footer to email admin page
This commit is contained in:
@@ -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> </p>'),
|
||||
'#type' => 'text_format',
|
||||
'#format' => 'full_html',
|
||||
);
|
||||
);
|
||||
$form['email']['booking_custom_email_count'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Number of custom email definitions'),
|
||||
|
@@ -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> </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'),
|
||||
|
Reference in New Issue
Block a user