default value test

This commit is contained in:
2016-05-25 23:26:42 +10:00
parent 01fe861663
commit af5e76f38e

View File

@@ -92,7 +92,6 @@ function booking_manual_email()
'welfare_required' => $data->booking_welfare_required == 'Y' ? 'Yes' : 'No', 'welfare_required' => $data->booking_welfare_required == 'Y' ? 'Yes' : 'No',
'travel_form' => $data->tid > 0 ? 'Yes' : 'No', 'travel_form' => $data->tid > 0 ? 'Yes' : 'No',
'#attributes' => array('class' => array($class)), '#attributes' => array('class' => array($class)),
'#disabled' => TRUE,
); );
if (variable_get('booking_enable_studygroups', 0) == 1) { if (variable_get('booking_enable_studygroups', 0) == 1) {
@@ -106,14 +105,14 @@ function booking_manual_email()
$options[$data->nid]['group_roles'] = $group_text; $options[$data->nid]['group_roles'] = $group_text;
} }
//$values[$data->nid] = ($paid == 0 || $data->booking_status != 1) ? FALSE : TRUE; $values[$data->nid] = ($paid == 0 || $data->booking_status != 1) ? FALSE : TRUE;
} }
$form['table'] = array ( $form['table'] = array (
'#type' => 'tableselect', '#type' => 'tableselect',
'#header' => $header, '#header' => $header,
'#options' => $options, '#options' => $options,
//'#default_value' => $values, '#default_value' => $values,
'#empty' => t('No attendees found.'), '#empty' => t('No attendees found.'),
'#attributes' => array('id' => 'sort-table'), '#attributes' => array('id' => 'sort-table'),
); );