From 6730787ea1846632104ff09c976ce49162a874c4 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 26 Aug 2017 19:06:27 +1000 Subject: [PATCH] add debug --- booking.regn_form.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 3264dde..44f5c77 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -942,6 +942,7 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) { global $event; $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)) { @@ -964,6 +965,7 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) { return '
Your early registration code has been validated.
'; } } + //no access code entered but we required one else { return '
You must enter an early access code to register now. If you do not have a code, please wait until normal registrations open.
'; }