registration_handler_field_entity_capacity_total.inc in Entity Registration 7
Same filename and directory in other branches
Display maximum slots for an entity.
File
modules/registration_views/includes/registration_handler_field_entity_capacity_total.incView 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
Name | Description |
---|---|
registration_handler_field_entity_capacity_total | @file Display maximum slots for an entity. |