function quiz_views_handler_field_takes::render in Quiz 7
Same name and namespace in other branches
- 8.4 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 6.6 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 6.3 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 6.4 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 6.5 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 7.6 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
- 7.4 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ handlers/ quiz_views_handler_field_takes.inc, line 8
Class
Code
function render($values) {
$value = $values->{$this->field_alias};
if ((int) $value === 0) {
return 'Unlimited';
}
return $value;
}