1. openlayers
    1. DRUPAL-7--2
DRUPAL-7--2 hook_openlayers_behaviors()

OpenLayers Behaviors

This hook tells OpenLayers about the available behaviors that can be used in maps.

Ensure that you are telling CTools about this as well.

Return value

Return a nested associative array with the top level being a unique string identifier, and the nested array containing the following key/pairs:

  • "title":
  • "description":
  • "file":
  • "type":
  • "behavior":

See also



docs/openlayers.api.php, line 179

function hook_openlayers_behaviors() {
  // Taken from openlayers.behaviors.inc

  return array(
    'openlayers_behavior_attribution' => array(
      'title' => t('Attribution'), 
      'description' => t('Allows layers to provide attribution to the map if it exists.'), 
      'type' => 'layer', 
      'path' => drupal_get_path('module', 'openlayers') . '/includes/behaviors', 
      'file' => 'openlayers_behavior_attribution.inc', 
      'behavior' => array(
        'class' => 'openlayers_behavior_attribution', 
        'parent' => 'openlayers_behavior',