function uc_product_handler_field_weight::render in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_product/views/uc_product_handler_field_weight.inc \uc_product_handler_field_weight::render()
Overrides views_handler_field::render().
File
- uc_product/
views/ uc_product_handler_field_weight.inc, line 62 - Views handler: Product weight field.
Class
- uc_product_handler_field_weight
- Returns a formatted weight value to display in the View.
Code
function render($values) {
if ($this->options['format'] == 'numeric') {
return parent::render($values);
}
if ($this->options['format'] == 'uc_weight') {
return uc_weight_format($values->{$this->field_alias}, $values->{$this->aliases['weight_units']});
}
}