function commerce_file_handler_field_download_limit::render in Commerce File 7.2
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ handlers/ commerce_file_handler_field_download_limit.inc, line 47 - Contains commerce_file_handler_field_download_limit.
Class
- commerce_file_handler_field_download_limit
- Displays the download limit for a file
Code
function render($values) {
if (isset($values->commerce_file_download_count)) {
$download_limit = variable_get('commerce_file_download_limit', 100);
return $values->commerce_file_download_count . ' / ' . $download_limit;
}
}