Update report with edit link
This commit is contained in:
@@ -57,7 +57,8 @@ function booking_roomallocations_view_summary() {
|
|||||||
'booking_married' => array('data' => t('Married?'), 'field' => 'p.booking_married'),
|
'booking_married' => array('data' => t('Married?'), 'field' => 'p.booking_married'),
|
||||||
'booking_roomlocation' => array('data' => t('Room Location'), 'field' => 'r.booking_room_location_id'),
|
'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_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');
|
$query = db_select('booking_person', 'p');
|
||||||
@@ -83,6 +84,7 @@ function booking_roomallocations_view_summary() {
|
|||||||
_booking_room_location_lookup($data->booking_room_location_id),
|
_booking_room_location_lookup($data->booking_room_location_id),
|
||||||
$data->booking_room_number,
|
$data->booking_room_number,
|
||||||
_booking_room_bedtype_lookup($data->booking_room_bedtype),
|
_booking_room_bedtype_lookup($data->booking_room_bedtype),
|
||||||
|
l(t('Edit'), t('admin/booking/!id/edit-room', array('!id' => $data->nid))),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user