specify whole form element
This commit is contained in:
@@ -93,6 +93,14 @@ 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['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('--'),
|
'#options' => array('--'),
|
||||||
'#default_value' => '--',
|
'#default_value' => '--',
|
||||||
//isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : '--',
|
//isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : '--',
|
||||||
|
Reference in New Issue
Block a user