You are here

function hook_farm_map_behaviors in farmOS 7

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 Drupal JS settings to the page.

Related topics

10 functions implement hook_farm_map_behaviors()

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_behaviors in modules/farm/farm_area/farm_area.farm_map.inc
Implements hook_farm_map_behaviors().
farm_area_generate_farm_map_behaviors in modules/farm/farm_area/farm_area_generate/farm_area_generate.farm_map.inc
Implements hook_farm_map_behaviors().
farm_mapknitter_farm_map_behaviors in modules/farm/farm_mapknitter/farm_mapknitter.farm_map.inc
Implements hook_farm_map_behaviors().
farm_map_farm_map_behaviors in modules/farm/farm_map/farm_map.farm_map.inc
Implements hook_farm_map_behaviors().
farm_map_geofield_farm_map_behaviors in modules/farm/farm_map/farm_map_geofield/farm_map_geofield.farm_map.inc
Implements hook_farm_map_behaviors().

... See full list

File

modules/farm/farm_map/farm_map.api.php, line 30
Hooks provided by farm_map.

Code

function hook_farm_map_behaviors() {
  return array(
    'my_behavior' => array(
      'js' => 'js/my_behavior.js',
    ),
  );
}