From 99fa4d458494e221f5da0037dbc3e134996dde9c Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 26 Aug 2017 19:03:11 +1000 Subject: [PATCH] add postive feedback --- booking.regn_form.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 17eb45e..3264dde 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -955,10 +955,14 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) { ':eid' => $event->eid, ) )->fetchObject(); - //see if we got a result + //no matching code found so return an error if (! $code_check) { 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 { + return '
Your early registration code has been validated.
'; + } } 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.
';