function hook_farm_map_view in farmOS 7
Perform logic when a map is viewed.
Parameters
$name: The map name.
$element: The map element.
Related topics
10 functions implement hook_farm_map_view()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- farm_area_farm_map_view in modules/farm/ farm_area/ farm_area.farm_map.inc 
- Implements hook_farm_map_view().
- farm_area_generate_farm_map_view in modules/farm/ farm_area/ farm_area_generate/ farm_area_generate.farm_map.inc 
- Implements hook_farm_map_view().
- farm_mapknitter_farm_map_view in modules/farm/ farm_mapknitter/ farm_mapknitter.farm_map.inc 
- Implements hook_farm_map_view().
- farm_map_farm_map_view in modules/farm/ farm_map/ farm_map.farm_map.inc 
- Implements hook_farm_map_view().
- farm_map_geofield_farm_map_view in modules/farm/ farm_map/ farm_map_geofield/ farm_map_geofield.farm_map.inc 
- Implements hook_farm_map_view().
1 invocation of hook_farm_map_view()
- theme_farm_map in modules/farm/ farm_map/ farm_map.module 
- Returns HTML that wraps the farm map..
File
- modules/farm/ farm_map/ farm_map.api.php, line 59 
- Hooks provided by farm_map.
Code
function hook_farm_map_view($name, $element) {
  // Add my farmOS map behavior.
  if ($name == 'my_map') {
    farm_map_add_behavior('my_behavior');
  }
}