Farm map's hooks in farmOS 7
Hooks that can be implemented by other modules in order to extend farm_map.
File
- modules/
farm/ farm_map/ farm_map.api.php, line 18 - Hooks provided by farm_map.
Functions
Name | Location | Description |
---|---|---|
hook_farm_map_behaviors |
modules/ |
Define farmOS-map behaviors provided by this module. Modules can add a behavior to a map with farm_map_add_behavior('mybehavior'). This will add the JavaScript file to the page and invoke hook_farm_map_behavior_settings() to add necessary… |
hook_farm_map_behavior_settings |
modules/ |
Return an array of settings for a given behavior. These will be added to the page as Drupal JS settings in: Drupal.settings.farm_map.behaviors.[behaviorname] |
hook_farm_map_entity_geometries |
modules/ |
Extract geometries from an entity. |
hook_farm_map_view |
modules/ |
Perform logic when a map is viewed. |