cleanup debugging
This commit is contained in:
@@ -274,14 +274,14 @@ 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 = "";
|
||||||
$body_value = "";
|
$body_value = "";
|
||||||
}
|
}
|
||||||
else {
|
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'];
|
$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'];
|
||||||
@@ -391,7 +391,7 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
|
|||||||
$form['form']['submit']['#disabled'] = TRUE;
|
$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
|
// Rebuild the form
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
|
Reference in New Issue
Block a user