function farm_map_mapbox_farm_map_view in farmOS 7
Implements hook_farm_map_view().
File
- modules/
farm/ farm_map/ farm_map_mapbox/ farm_map_mapbox.farm_map.inc, line 32 - Farm Map hooks implemented by the Farm Map Mapbox module.
Code
function farm_map_mapbox_farm_map_view($name, $element) {
// If a Mapbox API key is set, enable Mapbox layers in all farm maps.
if (!empty(variable_get('farm_map_mapbox_api_key', FALSE))) {
farm_map_add_behavior('mapbox');
}
}