attach csv properly

This commit is contained in:
2016-06-26 22:07:28 +10:00
parent 49b97729f1
commit f628e41677

View File

@@ -432,14 +432,9 @@ function booking_report_flight_details() {
*/
function booking_report_travel() {
global $event;
$form = array();
//$form = array();
$prefix = t("<h2>Travel Details</h2>");
//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,