function openlayers_cck_gis_input_info in Openlayers 6
Implementation of hook_gis_input_info().
File
- modules/
openlayers_cck/ openlayers_cck.module, line 685 - This file holds the main Drupal hook functions and private functions for the openlayers_cck module.
Code
function openlayers_cck_gis_input_info($gis_type = NULL) {
$inputs = array(
'openlayers_wkt_widget' => array(
'label' => t('OpenLayers Map'),
'gis input' => 'wkt',
'safe reverse' => TRUE,
'gis types' => array(
'point',
'linestring',
'polygon',
),
'element' => array(
'#type' => 'openlayers_wkt',
),
),
);
return $inputs;
}