function geofield_handler_field::get_value in Geofield 7.2
Get the value that's supposed to be rendered.
This api exists so that other modules can easy set the values of the field without having the need to change the render method as well.
Parameters
object $values: An object containing all retrieved values.
string $field: Optional name of the field where the value is stored.
Overrides views_handler_field::get_value
File
- views/
handlers/ geofield_handler_field.inc, line 87 - Distance field implementation.
Class
- geofield_handler_field
- @file Distance field implementation.
Code
function get_value($values, $field = NULL) {
if (isset($values->{$this->field_alias})) {
return $values->{$this->field_alias};
}
}