function currency_handler_field_currency::render in Currency 6
Same name and namespace in other branches
- 7 includes/views/handlers/currency_handler_field_currency.inc \currency_handler_field_currency::render()
File
- 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);
}
}