function geofield_radius_options in Geofield 7.2
Same name and namespace in other branches
- 8 geofield.module \geofield_radius_options()
Returns options for radius of the Earth.
3 calls to geofield_radius_options()
- geofield_handler_argument_proximity::options_form in views/
handlers/ geofield_handler_argument_proximity.inc - Add form elements to select options for this contextual filter.
- geofield_handler_field::options_form in views/
handlers/ geofield_handler_field.inc - Default options form provides the label widget that all fields should have.
- geofield_proximity_element_process in ./
geofield.elements.inc - Process function for the proximity form element
File
- ./
geofield.elements.inc, line 370 - Provides FormAPI element callbacks for geofield_latlon and geofield_proximity.
Code
function geofield_radius_options() {
return array(
GEOFIELD_KILOMETERS => t('Kilometers'),
GEOFIELD_METERS => t('Meters'),
GEOFIELD_MILES => t('Miles'),
GEOFIELD_YARDS => t('Yards'),
GEOFIELD_FEET => t('Feet'),
GEOFIELD_NAUTICAL_MILES => t('Nautical Miles'),
);
}