change wrapper id

This commit is contained in:
2017-08-26 19:13:44 +10:00
parent 388e52462d
commit 3f42c97ef2

View File

@@ -112,7 +112,7 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
'#title' => 'Early Registration Code'
);
$form['early-access']['booking_earlyaccess_feedback_wrapper'] = array(
'#markup' => '<div id="booking-earlyaccess-feedback-wrapper"></div>',
'#markup' => '<div id="booking_earlyaccess_feedback_wrapper"></div>',
);
$form['early-access']['booking_earlyaccess_explanation'] = array(
'#type' => 'container',
@@ -962,25 +962,25 @@ 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 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 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 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 color="#8c2e0b">Unexpected condition.</span></div>';
}
#fallback
return '<div id="booking-earlyaccess-feedback-wrapper"></div>';
return '<div id="booking_earlyaccess_feedback_wrapper"></div>';
}
function booking_form_validate($form, &$form_state) {