add link to travel form

This commit is contained in:
2016-06-26 21:48:58 +10:00
parent 3a0daab0eb
commit 67dd4d6336

View File

@@ -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))
);