test replacing whole form

This commit is contained in:
Nathan Coad
2018-05-02 15:44:13 +10:00
parent 6c3ce18d2d
commit 295333c230

View File

@@ -23,6 +23,9 @@ function booking_variety_regn_form($node, &$form_state)
->orderBy('v.booking_variety_start'); ->orderBy('v.booking_variety_start');
$result = $timeslot_query->execute(); $result = $timeslot_query->execute();
$form['#prefix'] = '<div id="booking_variety_session_form_wrapper">';
$form['#suffix'] = '</div>';
$form['identity'] = array( $form['identity'] = array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => 'Select Person', '#title' => 'Select Person',
@@ -40,8 +43,12 @@ function booking_variety_regn_form($node, &$form_state)
'event' => 'change', 'event' => 'change',
//'wrapper' => 'booking_variety_regn_feedback_wrapper', //'wrapper' => 'booking_variety_regn_feedback_wrapper',
//'callback' => 'booking_variety_regn_callback', //'callback' => 'booking_variety_regn_callback',
'wrapper' => 'booking_variety_session_wrapper',
'callback' => 'booking_variety_session_callback', //'wrapper' => 'booking_variety_session_wrapper',
//'callback' => 'booking_variety_session_callback',
'wrapper' => 'booking_variety_session_form_wrapper',
'callback' => 'booking_variety_session_form_callback',
), ),
); );
@@ -236,6 +243,13 @@ function booking_variety_regn_callback($form, &$form_state) {
} }
/**
* Callback function
*/
function booking_variety_session_form_callback($form, &$form_state) {
return $form;
}
/** /**
* Process the submission * Process the submission
*/ */