You are here

function registration_handler_field_entity_capacity_total::render in Entity Registration 7

Same name and namespace in other branches
  1. 8.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total::render()
  2. 8 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total::render()
  3. 7.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc, line 7
Display maximum slots for an entity.

Class

registration_handler_field_entity_capacity_total
@file Display maximum slots for an entity.

Code

function render($values) {
  $slots = $this
    ->get_value($values);
  if (isset($slots)) {
    if (!empty($slots)) {
      return $slots;
    }
    else {
      return t('Unlimited');
    }
  }
}