You are here

function hook_leaflet_geojson_source_info_alter in Leaflet GeoJSON 8

Same name and namespace in other branches
  1. 7.2 leaflet_geojson.api.php \hook_leaflet_geojson_source_info_alter()
  2. 7 leaflet_geojson.api.php \hook_leaflet_geojson_source_info_alter()

Alter the Leaflet GeoJSON source info.

Parameters

array $infos: The source info array, keyed by source identifier.

See also

hook_leaflet_geojson_source_info()

1 invocation of hook_leaflet_geojson_source_info_alter()
leaflet_geojson_source_get_info in ./leaflet_geojson.module
Retrieves the leaflet layer configuration.

File

./leaflet_geojson.api.php, line 57
Hooks provided by the Leaflet GeoJSON module.

Code

function hook_leaflet_geojson_source_info_alter(array &$infos) {
  $infos['simple_source']['url'] = 'http://somewhere.else';
}