From 67dd4d6336dc275c2daff69461bb88ef1995fb53 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 26 Jun 2016 21:48:58 +1000 Subject: [PATCH] add link to travel form --- booking.reports.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/booking.reports.inc b/booking.reports.inc index 13ceb4e..996b5d9 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -438,7 +438,7 @@ function booking_report_travel() { //define sorting information with the header //as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7 $header = array(); - $header[] = array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'); + $header[] = array('data' => t('Edit'), 'field' => 'nid', 'sort' => 'asc'); $header[] = array('data' => t('Name'), 'field' => 'booking_lastname'); $header[] = array('data' => t('Booking Status'), 'field' => 'booking_status'); $header[] = array('data' => t('Transport Type'), 'field' => 'booking_transport_type'); @@ -469,7 +469,8 @@ function booking_report_travel() { $this_row = array(); //define the row for this person - $this_row[] = l(t('Edit !id', array('!id' => $person->nid)), t('node/!id/edit', array('!id' => $person->nid))); + $this_row[] = $travel_link = l(t('Travel'), t('node/!id/edit', array('!id' => $person->tid))); + //$this_row[] = l(t('Edit !id', array('!id' => $person->nid)), t('node/!id/edit', array('!id' => $person->nid))); $this_row[] = l(t('!first !last', array('!first' => ucwords($person->booking_firstname), '!last' => ucwords($person->booking_lastname))), t('node/!id', array('!id' => $person->nid)) );