function geofield_radius_options in Geofield 8
Same name and namespace in other branches
- 7.2 geofield.elements.inc \geofield_radius_options()
Returns options for radius of the Earth.
3 calls to geofield_radius_options()
- GeofieldProximityFilter::__construct in src/
Plugin/ views/ filter/ GeofieldProximityFilter.php - Constructs the GeofieldProximityFilter object.
- GeofieldProximitySourceBase::getUnitsOptions in src/
Plugin/ GeofieldProximitySourceBase.php - Get the list of valid options for units.
- GeofieldProximitySourceManager::buildCommonFormElements in src/
Plugin/ GeofieldProximitySourceManager.php - Builds the common elements of the Proximity Form.
File
- ./
geofield.module, line 115 - Contains the geofield.module.
Code
function geofield_radius_options() {
return [
'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'),
];
}