You are here

bat_event_handler_event_type_field.inc in Booking and Availability Management Tools for Drupal 7

Contains a Views field handler to take care of displaying the correct label for event bundles.

File

modules/bat_event/views/bat_event_handler_event_type_field.inc
View source
<?php

/**
 * @file
 * Contains a Views field handler to take care of displaying the correct label
 * for event bundles.
 */

/**
 *
 */
class bat_event_handler_event_type_field extends views_handler_field {

  /**
   * {@inheritdoc}
   */
  public function construct() {
    parent::construct();
  }

  /**
   * {@inheritdoc}
   */
  public function render($values) {
    $event_type = bat_event_type_load($this
      ->get_value($values));
    return $event_type->label;
  }

}