You are here

registration_handler_field_entity_capacity_total.inc in Entity Registration 7

Display maximum slots for an entity.

File

modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc
View source
<?php

/**
 * @file
 * Display maximum slots for an entity.
 */
class registration_handler_field_entity_capacity_total extends views_handler_field {
  function render($values) {
    $slots = $this
      ->get_value($values);
    if (isset($slots)) {
      if (!empty($slots)) {
        return $slots;
      }
      else {
        return t('Unlimited');
      }
    }
  }

}

Classes

Namesort descending Description
registration_handler_field_entity_capacity_total @file Display maximum slots for an entity.