recreate tableselect completely
This commit is contained in:
@@ -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' => '<div id="manual-email-attendees-items">',
|
||||
'#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'] = form_process_tableselect($form['table']);
|
||||
|
Reference in New Issue
Block a user