From f628e41677221476c6d3e9f82312cd78bed4f8f8 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 26 Jun 2016 22:07:28 +1000 Subject: [PATCH] attach csv properly --- booking.reports.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/booking.reports.inc b/booking.reports.inc index 583f016..1b95e32 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -432,14 +432,9 @@ function booking_report_flight_details() { */ function booking_report_travel() { global $event; - $form = array(); + //$form = array(); $prefix = t("

Travel Details

"); - //attach css so we can customise colours for some people - $form['#attached']['css'] = array( - drupal_get_path('module', 'booking') . '/booking.css', - ); - //define sorting information with the header //as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7 $header = array(); @@ -507,6 +502,9 @@ function booking_report_travel() { } $result = array ( + '#attached' => array ( + 'css' => array(drupal_get_path('module', 'booking') . '/booking.css') + ), 'first_para' => array ( '#type' => 'markup', '#markup' => $prefix,