remove link color since it is not defined in mail template
This commit is contained in:
@@ -76,6 +76,7 @@
|
|||||||
'#maxlength' => 50,
|
'#maxlength' => 50,
|
||||||
'#default_value' => empty($colors['booking_mailtemplate_subjectheading_text_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_subjectheading_text_color'],
|
'#default_value' => empty($colors['booking_mailtemplate_subjectheading_text_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_subjectheading_text_color'],
|
||||||
);
|
);
|
||||||
|
/*
|
||||||
$form['colors']['booking_mailtemplate_link_color'] = array (
|
$form['colors']['booking_mailtemplate_link_color'] = array (
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Link Colour'),
|
'#title' => t('Link Colour'),
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
'#maxlength' => 50,
|
'#maxlength' => 50,
|
||||||
'#default_value' => empty($colors['booking_mailtemplate_link_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_link_color'],
|
'#default_value' => empty($colors['booking_mailtemplate_link_color']) ? '#FFFFFF' : $colors['booking_mailtemplate_link_color'],
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
$form['booking_mailtemplate_header_image_url'] = array (
|
$form['booking_mailtemplate_header_image_url'] = array (
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('URL of header image'),
|
'#title' => t('URL of header image'),
|
||||||
@@ -188,10 +189,11 @@ function booking_mailtemplate_form_submit($form, &$form_state)
|
|||||||
$values = $form_state['input'];
|
$values = $form_state['input'];
|
||||||
$colors_variable_list = array('booking_mailtemplate_background_color', 'booking_mailtemplate_content_background_color',
|
$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_navigation_background_color', 'booking_mailtemplate_subjectheading_text_color',
|
||||||
'booking_mailtemplate_header_background_color', 'booking_mailtemplate_text_color', 'booking_mailtemplate_link_color',
|
'booking_mailtemplate_header_background_color', 'booking_mailtemplate_text_color',
|
||||||
'booking_mailtemplate_header_image_url', 'booking_mailtemplate_header_link_url',
|
'booking_mailtemplate_header_image_url', 'booking_mailtemplate_header_link_url',
|
||||||
);
|
);
|
||||||
|
//'booking_mailtemplate_link_color',
|
||||||
|
|
||||||
//set all the values that are just using the builtin drupal variable definitions
|
//set all the values that are just using the builtin drupal variable definitions
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
if (in_array($key, $colors_variable_list, FALSE)) {
|
if (in_array($key, $colors_variable_list, FALSE)) {
|
||||||
|
Reference in New Issue
Block a user