test again
This commit is contained in:
@@ -88,17 +88,11 @@ function booking_variety_session_callback($form, &$form_state) {
|
|||||||
//for each entry in the variety timeslot table, create a new form select item
|
//for each entry in the variety timeslot table, create a new form select item
|
||||||
foreach($result as $timeslot) {
|
foreach($result as $timeslot) {
|
||||||
|
|
||||||
|
//re-create the form element for this timeslot
|
||||||
|
$form['variety-sessions']['select-variety-' . $timeslot->tid]['#options'] = _booking_get_variety_timeslot_options($timeslot->tid);
|
||||||
$commands[] = ajax_command_replace('#select-variety-' . $timeslot->tid, drupal_render($form['variety-sessions']['select-variety-' . $timeslot->tid]));
|
$commands[] = ajax_command_replace('#select-variety-' . $timeslot->tid, drupal_render($form['variety-sessions']['select-variety-' . $timeslot->tid]));
|
||||||
/*
|
|
||||||
//create the form element for this timeslot
|
|
||||||
$form['variety-sessions']['select-variety-' . $timeslot->tid] = array(
|
|
||||||
'#type' => 'select',
|
|
||||||
'#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip),
|
|
||||||
'#required' => TRUE,
|
|
||||||
'#default_value' => '',
|
|
||||||
'#options' => _booking_get_variety_timeslot_options($timeslot->tid),
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
|
Reference in New Issue
Block a user