You are here

function farm_mapknitter_farm_map_view in farmOS 7

Implements hook_farm_map_view().

File

modules/farm/farm_mapknitter/farm_mapknitter.farm_map.inc, line 33
Farm Map hooks implemented by the Farm Mapknitter module.

Code

function farm_mapknitter_farm_map_view($name, $element) {

  // If a MapKnitter slug and title are set, add the layer to all farmOS maps.
  if (variable_get('farm_mapknitter_slug', FALSE) && variable_get('farm_mapknitter_title', FALSE)) {
    farm_map_add_behavior('mapknitter');
  }
}