From 112a29a49247e1d1839181d9f395318b9c42cf76 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 26 May 2016 12:51:40 +1000 Subject: [PATCH] give up on ajax selection of checkboxes --- booking.emails.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/booking.emails.inc b/booking.emails.inc index b70c3c9..18643aa 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -36,6 +36,7 @@ function booking_manual_email() '#options' => $email_options_array, ); + /* $form['select-type'] = array( '#type' => 'select', '#title' => t('Pre-Select People'), @@ -47,7 +48,7 @@ function booking_manual_email() 'event' => 'change', ), ); - + */ $header = array( 'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'), @@ -62,7 +63,7 @@ function booking_manual_email() 'welfare_required' => array('data' => t('Welfare Required?'), 'field' => 'booking_welfare_required'), 'travel_form' => array('data' => t('Travel Submitted?'), 'field' => 'tid'), ); - /* + if (variable_get('booking_enable_studygroups', 0) == 1) { //select entries from the study groups mapping table @@ -119,15 +120,15 @@ function booking_manual_email() $options[$data->nid]['group_roles'] = $group_text; } - $values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE; + //$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE; } - */ + $form['table'] = array ( '#type' => 'tableselect', '#multiple' => TRUE, '#header' => $header, - '#options' => _booking_manual_email_generate_options(), - '#default_value' => array("1812" => TRUE, "1813" => FALSE), + '#options' => $options, + //'#default_value' => array("1812" => TRUE, "1813" => FALSE), '#empty' => t('No attendees found.'), '#attributes' => array('id' => 'sort-table'), '#prefix' => '
',