function views_handler_field_node_registration_capacity::render in Node registration 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ views_handler_field_node_registration_capacity.inc, line 32
Class
Code
function render($values) {
if ($node = $this
->get_value($values)) {
$capacity = $node->registration
->capacity();
if (!$capacity && !empty($this->options['unlimited_text'])) {
return t($this->options['unlimited_text']);
}
return $capacity;
}
}