change wrapper id
This commit is contained in:
@@ -112,7 +112,7 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
|
|||||||
'#title' => 'Early Registration Code'
|
'#title' => 'Early Registration Code'
|
||||||
);
|
);
|
||||||
$form['early-access']['booking_earlyaccess_feedback_wrapper'] = array(
|
$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(
|
$form['early-access']['booking_earlyaccess_explanation'] = array(
|
||||||
'#type' => 'container',
|
'#type' => 'container',
|
||||||
@@ -962,25 +962,25 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) {
|
|||||||
//no matching code found so return an error
|
//no matching code found so return an error
|
||||||
if (! $code_check) {
|
if (! $code_check) {
|
||||||
watchdog('booking', "<pre>booking_earlyaccess_feedback_callback code check did not pass!</pre>");
|
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
|
//matched a code so let the user know everything is fine
|
||||||
else {
|
else {
|
||||||
watchdog('booking', "<pre>booking_earlyaccess_feedback_callback code check matched</pre>");
|
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
|
//no access code entered but we required one
|
||||||
else {
|
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 {
|
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
|
#fallback
|
||||||
return '<div id="booking-earlyaccess-feedback-wrapper"></div>';
|
return '<div id="booking_earlyaccess_feedback_wrapper"></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function booking_form_validate($form, &$form_state) {
|
function booking_form_validate($form, &$form_state) {
|
||||||
|
Reference in New Issue
Block a user