diff --git a/booking.emails.inc b/booking.emails.inc index e8df4ea..51aef2f 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -30,19 +30,6 @@ function booking_manual_email() '#default_value' => '', '#options' => $email_options_array, ); - - /* - $header = array ( - 'booking_nid' => array('data' => t('Booking ID')), - 'booking_name' => array('data' => t('Name')), - 'booking_email' => array('data' => t('Email Address')), - 'amount_paid' => array('data' => t('Amount Paid To Date')), - 'amount_reqd' => array('data' => t('Gross Payment Required')), - 'booking_status' => t('Status'), - 'booking_fully_paid' => t('Fully Paid?'), - 'welfare_required' => t('Welfare Required?'), - ); - */ $header = array( 'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'), @@ -80,10 +67,7 @@ function booking_manual_email() ->condition('p.booking_event_id', $event->eid, '='); $table_sort = $query->extend('TableSort')->orderbyHeader($header); - $result = $table_sort->execute(); - - //$result = db_query("SELECT * FROM {booking_person} WHERE booking_event_id = :eid", - // array(':eid' => $event->eid)); + $result = $table_sort->execute(); foreach($result as $data) {