making progress

This commit is contained in:
2016-05-26 12:06:38 +10:00
parent c6e988945a
commit c558d2e626

View File

@@ -124,6 +124,7 @@ function booking_manual_email()
*/
$form['table'] = array (
'#type' => 'tableselect',
'#multiple' => TRUE,
'#header' => $header,
'#options' => _booking_manual_email_generate_options(),
//'#default_value' => $values,
@@ -254,6 +255,7 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state)
$form['table'] = array (
'#type' => 'tableselect',
'#multiple' => TRUE,
'#header' => $header,
'#options' => $options,
//'#default_value' => $values,
@@ -263,7 +265,7 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state)
'#suffix' => '</div>',
);
watchdog('booking_debug', "<pre>Manual email new form table\n@info</pre>", array('@info' => print_r( $form['table'], true)));
//$form['table']['#default_value'] = $new_default_values;
$form['table']['#default_value'] = $new_default_values;
$form['table'] = form_process_tableselect($form['table']);
return $form['table'];