update callback
This commit is contained in:
@@ -130,6 +130,7 @@ function booking_variety_session_form_callback($form, &$form_state) {
|
|||||||
//$form['form']['variety-sessions']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Test</div>';
|
//$form['form']['variety-sessions']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Test</div>';
|
||||||
//return $form['form']['variety-sessions'];
|
//return $form['form']['variety-sessions'];
|
||||||
|
|
||||||
|
if (isset($data['booking_nid']) && isset($data['booking_lastname'])) {
|
||||||
// Perform lookup on person to make sure it matches someone attending the current event
|
// Perform lookup on person to make sure it matches someone attending the current event
|
||||||
$db_and = db_and();
|
$db_and = db_and();
|
||||||
$db_and->condition('p.booking_eventid', $event->eid, '=');
|
$db_and->condition('p.booking_eventid', $event->eid, '=');
|
||||||
@@ -150,6 +151,8 @@ function booking_variety_session_form_callback($form, &$form_state) {
|
|||||||
else {
|
else {
|
||||||
$form['form']['identity']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Identity matched.</div>';
|
$form['form']['identity']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Identity matched.</div>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
return $form['form'];
|
return $form['form'];
|
||||||
|
Reference in New Issue
Block a user