function rooms_booking_handler_booking_operations_field::render in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
rooms_booking/ views/ rooms_booking_handler_booking_operations_field.inc, line 19
Class
- rooms_booking_handler_booking_operations_field
- This field handler aggregates operations that can be done on a booking under a single field providing a more flexible way to present them in a view
Code
function render($values) {
$links = menu_contextual_links('rooms_booking', 'admin/rooms/bookings/booking', array(
$this
->get_value($values, 'booking_id'),
));
if (!empty($links)) {
return theme('links', array(
'links' => $links,
'attributes' => array(
'class' => array(
'links',
'inline',
'operations',
),
),
));
}
}