You are here

function rooms_booking_handler_booking_type_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_type_field.inc, line 15
Contains a Views field handler to take care of displaying the correct label for unit types.

Class

rooms_booking_handler_booking_type_field
@file Contains a Views field handler to take care of displaying the correct label for unit types.

Code

function render($values) {
  $booking_type = rooms_booking_type_load($this
    ->get_value($values));
  return $booking_type->label;
}