function farm_map_farm_map_view in farmOS 7
Implements hook_farm_map_view().
File
- modules/farm/ farm_map/ farm_map.farm_map.inc, line 24 
- Farm Map hooks implemented by the Farm Map module.
Code
function farm_map_farm_map_view($name, $element) {
  // If WKT was provided in the element, show it in the map.
  if (isset($element['#wkt'])) {
    $settings = array(
      'zoom' => TRUE,
    );
    if (!empty($element['#edit'])) {
      $settings['edit'] = TRUE;
    }
    farm_map_add_behavior('wkt', $settings);
  }
}