diff --git a/booking.emails.inc b/booking.emails.inc index c13eacc..3788085 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -251,8 +251,17 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state) } else { $new_default_values = array("1815" => TRUE); } - $form['table']['#header'] = $header; - $form['table']['#options'] = $options; + + $form['table'] = array ( + '#type' => 'tableselect', + '#header' => $header, + '#options' => $options, + //'#default_value' => $values, + '#empty' => t('No attendees found.'), + '#attributes' => array('id' => 'sort-table'), + '#prefix' => '
Manual email new form table\n@info", array('@info' => print_r( $form['table'], true))); //$form['table']['#default_value'] = $new_default_values; $form['table'] = form_process_tableselect($form['table']);