function openlayers_behaviors in Openlayers 7.2
Same name and namespace in other branches
- 6.2 openlayers.module \openlayers_behaviors()
Get all behaviors.
Parameters
$reset: Boolean whether to reset cache or not.
Return value
Array of behavior info.
2 calls to openlayers_behaviors()
- openlayers_ui_get_behavior_options in modules/
openlayers_ui/ includes/ openlayers_ui.maps.inc - Get behavior options.
- _openlayers_behaviors_render in includes/
openlayers.render.inc - Execute render() method for all enabled behaviors.
1 string reference to 'openlayers_behaviors'
- openlayers_ctools_plugin_api in ./
openlayers.module - Implements hook_ctools_plugin_api().
File
- ./
openlayers.module, line 693 - Main OpenLayers API File
Code
function openlayers_behaviors($reset = FALSE, $include_disabled = FALSE) {
ctools_include('plugins');
$behaviors = ctools_get_plugins('openlayers', 'behaviors');
if (!$include_disabled) {
$behaviors = array_filter($behaviors, 'openlayers_object_enabled');
}
return array_filter($behaviors, 'openlayers_behavior_definition_check');
}