function currency_handler_field_currency::render in Currency 7
Same name and namespace in other branches
- 6 views/handlers/currency_handler_field_currency.inc \currency_handler_field_currency::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ handlers/ currency_handler_field_currency.inc, line 9 - Views field handler.
Class
- currency_handler_field_currency
- @file Views field handler.
Code
function render($values) {
if ($this->options['display_code_only']) {
return parent::render($values);
}
else {
$currency_names = currency_api_get_list();
$value = $currency_names[$values->{$this->field_alias}];
return check_plain($value);
}
}