From ad87aaac723f297cef90dfe8dd658abf8c627495 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 22 May 2018 10:41:45 +1000 Subject: [PATCH] testing value --- booking.emails_admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index 73f92a7..30415aa 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -344,9 +344,9 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) { $form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = $subject; $text = variable_get('booking_email_' . $emailtype, ''); - //$text = isset($text['format']) ? $text['value'] : $text; + $text = isset($text['format']) ? $text['value'] : $text; watchdog('booking_debug', 'custom text:
@info
', array('@info' => print_r( $text, true))); - $form['form']['email-definition']['booking_email_body_custom']['#value'] = $text; + $form['form']['email-definition']['booking_email_body_custom']['value']['#value'] = $text; } watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback:
@info
', array('@info' => print_r( $form, true)));