You are here

function openlayers_cck_widget_info in Openlayers 6

Same name and namespace in other branches
  1. 6.2 modules/openlayers_cck/openlayers_cck.module \openlayers_cck_widget_info()

Implementation of hook_widget_info().

File

modules/openlayers_cck/openlayers_cck.module, line 230
This file holds the main Drupal hook functions and private functions for the openlayers_cck module.

Code

function openlayers_cck_widget_info() {
  return array(
    'openlayers_wkt_widget' => array(
      'label' => t('OpenLayers Map'),
      'field types' => array(
        'openlayers_wkt',
        'geo',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}