remove br outside div
This commit is contained in:
@@ -966,27 +966,29 @@ 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 style="color:#8c2e0b;font-weight: bold;">You have entered an invalid early registration code. If you do not have a code, please wait until normal registrations open.</span><br /></div><br />';
|
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;font-weight: bold;">' .
|
||||||
|
'You have entered an invalid early registration code. If you do not have a code, please wait until normal registrations open.</span><br /><br /></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 style="color:#234600;font-weight: bold;">Your early registration code has been validated.</span><br /></div><br />';
|
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#234600;font-weight: bold;">Your early registration code has been validated.</span><br /><br /></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 style="color:#8c2e0b;font-weight: bold;">You must enter an early access code to register now. If you do not have a code, please wait until normal registrations open.</span><br /></div><br />';
|
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;font-weight: bold;">' .
|
||||||
|
'You must enter an early access code to register now. If you do not have a code, please wait until normal registrations open.</span><br /><br /></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;font-weight: bold;">Unexpected condition.</span><br /></div><br />';
|
return '<div id="booking_earlyaccess_feedback_wrapper"><span style="color:#8c2e0b;font-weight: bold;">Unexpected condition.</span><br /><br /></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
#fallback
|
#fallback
|
||||||
return '<div id="booking_earlyaccess_feedback_wrapper">If you have been given an early-access code for registration, please enter it below. ' .
|
return '<div id="booking_earlyaccess_feedback_wrapper">If you have been given an early-access code for registration, please enter it below. ' .
|
||||||
'Without this code, your registration will not be accepted.<br />' .
|
'Without this code, your registration will not be accepted.<br />' .
|
||||||
'<p><strong>NOTE: each early-access code can only be used once, so don\'t pass it along to your friends!</strong></p></div><br />';
|
'<p><strong>NOTE: each early-access code can only be used once, so don\'t pass it along to your friends!</strong></p></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function booking_form_validate($form, &$form_state) {
|
function booking_form_validate($form, &$form_state) {
|
||||||
|
Reference in New Issue
Block a user