change instruction to inside wrapper
This commit is contained in:
@@ -112,14 +112,18 @@ 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">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 />' .
|
||||
'<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 />',
|
||||
);
|
||||
/*
|
||||
$form['early-access']['booking_earlyaccess_explanation'] = array(
|
||||
'#type' => 'container',
|
||||
'#children' => t("<p>If you have been given an early-access code for registration, please enter it below. " .
|
||||
"Without this code, your registration will not be accepted.</p>" .
|
||||
"<p><strong>NOTE: each early-access code can only be used once, so don't pass it along to your friends!</strong></p>"),
|
||||
);
|
||||
*/
|
||||
$form['early-access']['booking_earlyaccess_code'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Unique Early-Access Code'),
|
||||
@@ -980,7 +984,9 @@ function booking_earlyaccess_feedback_callback($form, &$form_state) {
|
||||
}
|
||||
|
||||
#fallback
|
||||
return '<div id="booking_earlyaccess_feedback_wrapper"></div>';
|
||||
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 />' .
|
||||
'<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 />';
|
||||
}
|
||||
|
||||
function booking_form_validate($form, &$form_state) {
|
||||
|
Reference in New Issue
Block a user