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 '
booking_earlyaccess_feedback_callback code check matched"); + //watchdog('booking', "
booking_earlyaccess_feedback_callback code check matched"); return '