add debug
This commit is contained in:
@@ -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', '<pre>booking_earlyaccess_feedback_callback validation:\n@info</pre>', 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 '<div id="booking-earlyaccess-feedback-wrapper"><span 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>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user