cleanup debugging

This commit is contained in:
Nathan Coad
2018-05-22 13:26:16 +10:00
parent e9de00f774
commit 8156084537

View File

@@ -274,14 +274,14 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
}
// Populate some default values if a selection has already been made
watchdog('booking_debug', 'booking_emails_custom_ajax_form state: <pre>@info</pre>', array('@info' => print_r( $form_state, true)));
//watchdog('booking_debug', 'booking_emails_custom_ajax_form state: <pre>@info</pre>', array('@info' => print_r( $form_state, true)));
if (!isset($form_state['input']['email-type'])) {
$subject_value = "";
$body_value = "";
}
else {
watchdog('booking_debug', 'booking_emails_custom_ajax_form user has selected email type ' . $form_state['input']['email-type']);
//watchdog('booking_debug', 'booking_emails_custom_ajax_form user has selected email type ' . $form_state['input']['email-type']);
$emailtype = $form_state['input']['email-type'];
$subject_value = $form_state['input']['booking_email_subjectline_custom'];
$body_value = $form_state['input']['booking_email_body_custom']['value'];
@@ -391,7 +391,7 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
$form['form']['submit']['#disabled'] = TRUE;
}
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)));
// Rebuild the form
$form_state['rebuild'] = TRUE;