From c4a90e8776ff91e89f24fcfb32df662240bc5268 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 22 May 2018 10:24:15 +1000 Subject: [PATCH] change #default_value to #value --- booking.emails_admin.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index 91d7fbb..4b3a598 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -305,12 +305,12 @@ function booking_emails_custom_ajax_form($node, &$form_state) { '#title' => t('Subject line for Custom Email'), '#size' => 150, '#maxlength' => 300, - '#default_value' => isset($form_state['values']['booking_email_subjectline_custom']) ? $form_state['values']['booking_email_subjectline_custom'] : '', + '#value' => isset($form_state['values']['booking_email_subjectline_custom']) ? $form_state['values']['booking_email_subjectline_custom'] : '', ); $form['email-definition']['booking_email_body_custom'] = array( '#title' => t('Email text for custom email'), '#description' => t(''), - '#default_value' => isset($form_state['values']['booking_email_body_custom']) ? $form_state['values']['booking_email_body_custom'] : '', + '#value' => isset($form_state['values']['booking_email_body_custom']) ? $form_state['values']['booking_email_body_custom'] : '', '#type' => $form_type, '#format' => $form_format, ); @@ -338,11 +338,11 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) { $emailtype = $form_state['input']['email-type']; if (strpos($emailtype, 'custom') !== false) { $subject = variable_get('booking_email_subject_' . $emailtype, ''); - $form['form']['email-definition']['booking_email_subjectline_custom']['#default_value'] = $subject; + $form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = $subject; $text = variable_get('booking_email_' . $emailtype, ''); $text = isset($text['format']) ? $text['value'] : $text; - $form['form']['email-definition']['booking_email_body_custom']['#default_value'] = $text; + $form['form']['email-definition']['booking_email_body_custom']['#value'] = $text; } // Rebuild the form