specify whole form element

This commit is contained in:
Nathan Coad
2018-05-02 13:27:17 +10:00
parent c440c769d2
commit 3c8ed7f1e3

View File

@@ -93,6 +93,14 @@ function booking_variety_session_callback($form, &$form_state) {
//re-create the form element for this timeslot
$form['variety-sessions'][$fieldname] = array(
'#type' => 'select',
'#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip),
'#required' => TRUE,
//'#default_value' => '',
//'#options' => _booking_get_variety_timeslot_options($timeslot->tid),
'#prefix' => '<div id="booking_variety_session_' . $timeslot->tid . 'wrapper">',
'#suffix' => '</div>',
'#options' => array('--'),
'#default_value' => '--',
//isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : '--',