add new colour to email template

This commit is contained in:
Nathan Coad
2019-09-02 23:33:41 +10:00
parent fcfa97ff91
commit 5276e4bca1
2 changed files with 11 additions and 3 deletions

View File

@@ -77,6 +77,14 @@
'#maxlength' => 50,
'#default_value' => empty($colors['booking_mailtemplate_navigation_background_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_navigation_background_color'],
);
$form['colors']['booking_mailtemplate_header_text_color'] = array (
'#type' => 'textfield',
'#title' => t('Navigation links area Text Colour'),
'#description' => t('Specify CSS compatible value'),
'#size' => 10,
'#maxlength' => 50,
'#default_value' => empty($colors['booking_mailtemplate_header_text_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_header_text_color'],
);
$form['colors']['booking_mailtemplate_text_color'] = array (
'#type' => 'textfield',
'#title' => t('Text Colour'),
@@ -190,7 +198,7 @@ function booking_mailtemplate_form_submit($form, &$form_state)
$values = $form_state['input'];
$colors_variable_list = array('booking_mailtemplate_background_color', 'booking_mailtemplate_content_background_color',
'booking_mailtemplate_navigation_background_color', 'booking_mailtemplate_subjectheading_text_color',
'booking_mailtemplate_header_background_color', 'booking_mailtemplate_text_color',
'booking_mailtemplate_header_background_color', 'booking_mailtemplate_header_text_color', 'booking_mailtemplate_text_color',
'booking_mailtemplate_header_image_url', 'booking_mailtemplate_header_link_url',
);
//'booking_mailtemplate_link_color',