Update report with edit link

This commit is contained in:
2014-06-03 22:31:08 +10:00
parent ca0a3e1e3a
commit 399b0fa29f

View File

@@ -57,7 +57,8 @@ function booking_roomallocations_view_summary() {
'booking_married' => array('data' => t('Married?'), 'field' => 'p.booking_married'),
'booking_roomlocation' => array('data' => t('Room Location'), 'field' => 'r.booking_room_location_id'),
'booking_room_num' => array('data' => t('Room Number'), 'field' => 'r.booking_room_number'),
'booking_room_bedtype' => array('data' => t('Bed Type'), 'field' => 'm.booking_room_bedtype')
'booking_room_bedtype' => array('data' => t('Bed Type'), 'field' => 'm.booking_room_bedtype'),
'booking_room_edit' => array('data' => t('Edit')),
);
$query = db_select('booking_person', 'p');
@@ -83,6 +84,7 @@ function booking_roomallocations_view_summary() {
_booking_room_location_lookup($data->booking_room_location_id),
$data->booking_room_number,
_booking_room_bedtype_lookup($data->booking_room_bedtype),
l(t('Edit'), t('admin/booking/!id/edit-room', array('!id' => $data->nid))),
),
);
}