function rooms_booking_handler_nights_field::render in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field_numeric::render
File
- modules/
rooms_booking/ views/ rooms_booking_handler_nights_field.inc, line 35
Class
Code
function render($values) {
$value = number_format($values->{$this->field_alias}, $this->options['precision'], $this->options['decimal'], $this->options['separator']);
return $this
->sanitize_value($value);
}