rooms_booking_handler_booking_type_field.inc in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Contains a Views field handler to take care of displaying the correct label for unit types.
File
modules/rooms_booking/views/rooms_booking_handler_booking_type_field.incView source
<?php
/**
* @file
* Contains a Views field handler to take care of displaying the correct label
* for unit types.
*/
class rooms_booking_handler_booking_type_field extends views_handler_field {
function construct() {
parent::construct();
}
function render($values) {
$booking_type = rooms_booking_type_load($this
->get_value($values));
return $booking_type->label;
}
}
Classes
Name![]() |
Description |
---|---|
rooms_booking_handler_booking_type_field | @file Contains a Views field handler to take care of displaying the correct label for unit types. |