You are here

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.inc
View 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

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