You are here

protected function LeafletGeoJSONBean::getSourceOptions in Leaflet GeoJSON 7.2

Same name and namespace in other branches
  1. 7 modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc \LeafletGeoJSONBean::getSourceOptions()
1 call to LeafletGeoJSONBean::getSourceOptions()
LeafletGeoJSONBean::form in modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc
Builds extra settings for the block edit form.

File

modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc, line 151
Leaflet GeoJSON bean plugin.

Class

LeafletGeoJSONBean
@file Leaflet GeoJSON bean plugin.

Code

protected function getSourceOptions() {
  $sources = leaflet_geojson_source_get_info(NULL, TRUE);
  $source_options = array();
  foreach ($sources as $id => $source) {
    $source_options[$id] = $source['title'];
  }
  return $source_options;
}