test again
This commit is contained in:
@@ -341,12 +341,12 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
|
|||||||
$emailtype = $form_state['input']['email-type'];
|
$emailtype = $form_state['input']['email-type'];
|
||||||
if (strpos($emailtype, 'custom') !== false) {
|
if (strpos($emailtype, 'custom') !== false) {
|
||||||
$subject = variable_get('booking_email_subject_' . $emailtype, '');
|
$subject = variable_get('booking_email_subject_' . $emailtype, '');
|
||||||
$form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = $subject;
|
$form['form']['email-definition']['booking_email_subjectline_custom']['value'] = $subject;
|
||||||
|
|
||||||
$text = variable_get('booking_email_' . $emailtype, '');
|
$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: <pre>@info</pre>', array('@info' => print_r( $text, true)));
|
watchdog('booking_debug', 'custom text: <pre>@info</pre>', array('@info' => print_r( $text, true)));
|
||||||
$form['form']['email-definition']['booking_email_body_custom']['#default_value'] = $text;
|
$form['form']['email-definition']['booking_email_body_custom']['#value']['#value'] = $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
|
watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
|
||||||
|
Reference in New Issue
Block a user