attach csv properly
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user