You are here

function yamaps_field_info in Yandex.Maps 7

Implements hook_field_info().

File

./yamaps.module, line 246
Yandex Maps module main file.

Code

function yamaps_field_info() {
  return [
    'field_yamaps' => [
      'label' => t('Yandex map'),
      'default_widget' => 'yamaps_field',
      'default_formatter' => YAMAPS_DYNAMIC_FORMATTER,
      'settings' => [
        'display_options' => [
          'display_type' => 'map',
          'open_button_text' => YAMAPS_DEFAULT_OPEN_MAP_TEXT,
          'height' => YAMAPS_DEFAULT_ADMIN_UI_MAP_HEIGHT,
          'width' => YAMAPS_DEFAULT_ADMIN_UI_MAP_WIDTH,
        ],
      ],
    ],
  ];
}