public function SearchApiViewsHandlerFieldLocation::option_definition in Search API Location 7.2
Provide options for this handler.
Overrides entity_views_handler_field_text::option_definition
File
- search_api_location_views/
handler_field_location.inc, line 23 - Contains SearchApiViewsHandlerFieldLocation.
Class
- SearchApiViewsHandlerFieldLocation
- Specialized handler for latitude/longitude fields.
Code
public function option_definition() {
$options = parent::option_definition();
$options['show_distance_to_point'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['conversion_factor'] = array(
'default' => 1,
);
$options['set_precision'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['precision'] = array(
'default' => 0,
);
$options['decimal'] = array(
'default' => '.',
'translatable' => TRUE,
);
$options['separator'] = array(
'default' => ',',
'translatable' => TRUE,
);
return $options;
}