From 1fb55cc4d58445a0d3392483422fb7ae7e76a049 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 26 Aug 2017 19:25:22 +1000 Subject: [PATCH] comment out debug statements --- booking.regn_form.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 1b551d9..db57436 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -944,15 +944,15 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all function booking_earlyaccess_feedback_callback($form, &$form_state) { global $event; - $node = $form_state['values']['form_id']; + //$node = $form_state['values']['form_id']; $data = $form_state['input']; //watchdog('booking', '
booking_earlyaccess_feedback_callback validation:\n@info
', array('@info' => print_r( $data, true))); //if necessary, validate early access code if (variable_get('booking_enable_earlyaccess_codes', 0) == 1 && (isset($data['booking_earlyaccess']) && $data['booking_earlyaccess'] == 1)) { - watchdog('booking', '
booking_earlyaccess_feedback_callback first if statement passed
'); + //watchdog('booking', '
booking_earlyaccess_feedback_callback first if statement passed
'); if (isset($data['booking_earlyaccess_code']) && $data['booking_earlyaccess_code'] != '') { - watchdog('booking', '
booking_earlyaccess_feedback_callback second if statement passed
'); + //watchdog('booking', '
booking_earlyaccess_feedback_callback second if statement passed
'); //perform a database lookup against the booking_earlyaccess_codes table $code_check = db_query("SELECT cid " . "FROM {booking_earlyaccess_codes} " . @@ -962,15 +962,15 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) { ':eid' => $event->eid, ) )->fetchObject(); - watchdog('booking', "
booking_earlyaccess_feedback_callback code check:\n@info
", array('@info' => print_r( $code_check, true))); + //watchdog('booking', "
booking_earlyaccess_feedback_callback code check:\n@info
", array('@info' => print_r( $code_check, true))); //no matching code found so return an error if (! $code_check) { - watchdog('booking', "
booking_earlyaccess_feedback_callback code check did not pass!
"); + //watchdog('booking', "
booking_earlyaccess_feedback_callback code check did not pass!
"); return '
You have entered an invalid early registration code. If you do not have a code, please wait until normal registrations open.

'; } //matched a code so let the user know everything is fine else { - watchdog('booking', "
booking_earlyaccess_feedback_callback code check matched
"); + //watchdog('booking', "
booking_earlyaccess_feedback_callback code check matched
"); return '
Your early registration code has been validated.

'; } }