add debugging

This commit is contained in:
Nathan Coad
2018-05-22 10:27:01 +10:00
parent c4a90e8776
commit 9e20d49304

View File

@@ -342,9 +342,12 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
$text = variable_get('booking_email_' . $emailtype, '');
$text = isset($text['format']) ? $text['value'] : $text;
watchdog('booking_debug', 'custom text: <pre>@info</pre>', array('@info' => print_r( $text, true)));
$form['form']['email-definition']['booking_email_body_custom']['#value'] = $text;
}
watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
// Rebuild the form
$form_state['rebuild'] = TRUE;
return $form['form']['email-definition'];