You are here

function openlayers_behaviors_process_popup in Openlayers 6

Callback for OpenLayers Behaviors (Popup)

Parameters

$behavior: Data about behavior

$map: Map array

Return value

Behavior array

1 string reference to 'openlayers_behaviors_process_popup'
openlayers_behaviors_openlayers_behaviors_info in modules/openlayers_behaviors/openlayers_behaviors.module
Implementation of hook_openlayers_behaviors_info().

File

modules/openlayers_behaviors/includes/openlayers_behaviors.behaviors.inc, line 125
This file holds the main Drupal hook functions and private functions for the openlayers_behaviors module.

Code

function openlayers_behaviors_process_popup($behavior, &$map) {

  // Assume we want to display the name attribute if no attribute is specified
  if (!$behavior['attribute']) {
    $behavior['attribute'] = 'name';
  }
  return $behavior;
}