attach csv properly
This commit is contained in:
@@ -432,14 +432,9 @@ function booking_report_flight_details() {
|
|||||||
*/
|
*/
|
||||||
function booking_report_travel() {
|
function booking_report_travel() {
|
||||||
global $event;
|
global $event;
|
||||||
$form = array();
|
//$form = array();
|
||||||
$prefix = t("<h2>Travel Details</h2>");
|
$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
|
//define sorting information with the header
|
||||||
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
|
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
|
||||||
$header = array();
|
$header = array();
|
||||||
@@ -507,6 +502,9 @@ function booking_report_travel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result = array (
|
$result = array (
|
||||||
|
'#attached' => array (
|
||||||
|
'css' => array(drupal_get_path('module', 'booking') . '/booking.css')
|
||||||
|
),
|
||||||
'first_para' => array (
|
'first_para' => array (
|
||||||
'#type' => 'markup',
|
'#type' => 'markup',
|
||||||
'#markup' => $prefix,
|
'#markup' => $prefix,
|
||||||
|
Reference in New Issue
Block a user