This commit is contained in:
2017-08-26 19:16:30 +10:00
parent 3f42c97ef2
commit 8ba365ed97

View File

@@ -962,21 +962,21 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) {
//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>';
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="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>';
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#234600;">Your early registration code has been validated.</span></div>';
}
}
//no access code entered but we required one
else {
return '<div id="booking_earlyaccess_feedback_wrapper"><span color="#8c2e0b">You must enter an early access code to register now. If you do not have a code, please wait until normal registrations open.</span></div>';
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;">You must enter an early access code to register now. If you do not have a code, please wait until normal registrations open.</span></div>';
}
}
else {
return '<div id="booking_earlyaccess_feedback_wrapper"><span color="#8c2e0b">Unexpected condition.</span></div>';
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;">Unexpected condition.</span></div>';
}
#fallback