You are here

function hook_farm_map_behavior_settings in farmOS 7

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]

Related topics

4 functions implement hook_farm_map_behavior_settings()

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_behavior_settings in modules/farm/farm_area/farm_area.farm_map.inc
Implements hook_farm_map_behavior_settings().
farm_mapknitter_farm_map_behavior_settings in modules/farm/farm_mapknitter/farm_mapknitter.farm_map.inc
Implements hook_farm_map_behavior_settings().
farm_map_mapbox_farm_map_behavior_settings in modules/farm/farm_map/farm_map_mapbox/farm_map_mapbox.farm_map.inc
Implements hook_farm_map_behavior_settings().
farm_movement_farm_map_behavior_settings in modules/farm/farm_movement/farm_movement.farm_map.inc
Implements hook_farm_map_behavior_settings().

File

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

Code

function hook_farm_map_behavior_settings($behavior) {
  $settings = array();
  if ($behavior == 'my_behavior') {
    $settings['foo'] = 'bar';
  }
  return $settings;
}