remove debug

This commit is contained in:
Nathan Coad
2018-05-22 12:24:04 +10:00
parent 9f1a07e2fc
commit bec6253981

View File

@@ -273,7 +273,7 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
} }
// Populate some default values if a selection has already been made // 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'])) { if (!isset($form_state['input']['email-type'])) {
$subject_value = ""; $subject_value = "";
@@ -283,9 +283,6 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
$emailtype = $form_state['input']['email-type']; $emailtype = $form_state['input']['email-type'];
$subject_value = $form_state['input']['booking_email_subjectline_custom']; $subject_value = $form_state['input']['booking_email_subjectline_custom'];
$body_value = $form_state['input']['booking_email_body_custom']['value']; $body_value = $form_state['input']['booking_email_body_custom']['value'];
//$subject_value = variable_get('booking_email_subject_' . $emailtype, '');
//$body_value = variable_get('booking_email_' . $emailtype, '');
//$body_value = isset($body_value['format']) ? $body_value['value'] : $body_value;
} }
if(variable_get('booking_enable_html_mail', 0) == 1) { if(variable_get('booking_enable_html_mail', 0) == 1) {
@@ -368,7 +365,7 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
$form['form']['storage']['emailtype'] = $emailtype; $form['form']['storage']['emailtype'] = $emailtype;
} }
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 // Rebuild the form
$form_state['rebuild'] = TRUE; $form_state['rebuild'] = TRUE;