You are here

public function bat_unit_handler_type_id_field::render in Booking and Availability Management Tools for Drupal 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/bat_unit/views/bat_unit_handler_type_id_field.inc, line 24
Contains a Views field handler to take care of displaying the correct label for unit bundles.

Class

bat_unit_handler_type_id_field

Code

public function render($values) {
  if ($type = bat_type_load($this
    ->get_value($values))) {
    return $type->name;
  }
}