more debug

This commit is contained in:
2017-08-26 19:11:28 +10:00
parent d6e76f6e81
commit 388e52462d

View File

@@ -958,13 +958,15 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) {
':eid' => $event->eid,
)
)->fetchObject();
watchdog('booking', '<pre>booking_earlyaccess_feedback_callback code check:\n@info</pre>', array('@info' => print_r( $code_check, true)));
watchdog('booking', "<pre>booking_earlyaccess_feedback_callback code check:\n@info</pre>", array('@info' => print_r( $code_check, true)));
//no matching code found so return an error
if (! $code_check) {
watchdog('booking', "<pre>booking_earlyaccess_feedback_callback code check did not pass!</pre>");
return '<div id="booking-earlyaccess-feedback-wrapper"><span color="#8c2e0b">You have entered an invalid early registration code. If you do not have a code, please wait until normal registrations open.</span></div>';
}
//matched a code so let the user know everything is fine
else {
watchdog('booking', "<pre>booking_earlyaccess_feedback_callback code check matched</pre>");
return '<div id="booking-earlyaccess-feedback-wrapper"><span color="#234600">Your early registration code has been validated.</span></div>';
}
}