rooms_unit_handler_unit_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_unit/views/rooms_unit_handler_unit_type_field.incView source
<?php
/**
* @file
* Contains a Views field handler to take care of displaying the correct label
* for unit types.
*/
class rooms_unit_handler_unit_type_field extends views_handler_field {
function construct() {
parent::construct();
}
function render($values) {
$unit_type = rooms_unit_type_load($this
->get_value($values));
return $unit_type->label;
}
}
Classes
Name![]() |
Description |
---|---|
rooms_unit_handler_unit_type_field | @file Contains a Views field handler to take care of displaying the correct label for unit types. |