test
This commit is contained in:
@@ -80,7 +80,7 @@ function booking_variety_session_callback($form, &$form_state) {
|
|||||||
$commands = array();
|
$commands = array();
|
||||||
//$node = $form_state['values']['form_id'];
|
//$node = $form_state['values']['form_id'];
|
||||||
$data = $form_state['input'];
|
$data = $form_state['input'];
|
||||||
//watchdog('booking_debug', 'booking_variety_session_callback:<br /><pre>@info</pre>', array('@info' => print_r( $data, true)));
|
watchdog('booking_debug', 'booking_variety_session_callback:<br /><pre>@info</pre>', array('@info' => print_r( $form, true)));
|
||||||
|
|
||||||
// --- Update the wrapper for booking ID validity ---
|
// --- Update the wrapper for booking ID validity ---
|
||||||
//verify that user-entered data is a number
|
//verify that user-entered data is a number
|
||||||
@@ -138,8 +138,8 @@ function booking_variety_session_callback($form, &$form_state) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
//re-create the form element for this timeslot
|
//re-create the form element for this timeslot
|
||||||
/*
|
|
||||||
$form['variety-sessions'][$fieldname] = array(
|
$form['form']['variety-sessions'][$fieldname] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip),
|
'#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip),
|
||||||
'#required' => TRUE,
|
'#required' => TRUE,
|
||||||
@@ -148,11 +148,11 @@ function booking_variety_session_callback($form, &$form_state) {
|
|||||||
'#suffix' => '</div>',
|
'#suffix' => '</div>',
|
||||||
'#default_value' => 1,
|
'#default_value' => 1,
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
//$form['variety-sessions'][$fieldname]['#options'] = $options;
|
//$form['variety-sessions'][$fieldname]['#options'] = $options;
|
||||||
|
|
||||||
// Tell drupal to update the wrapper for this field
|
// Tell drupal to update the wrapper for this field
|
||||||
$commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', render($form['variety-sessions'][$fieldname]));
|
$commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', render($form['form']['variety-sessions'][$fieldname]));
|
||||||
}
|
}
|
||||||
|
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
|
Reference in New Issue
Block a user