You are here

function yamaps_field_schema in Yandex.Maps 7

Implements hook_field_schema().

1 call to yamaps_field_schema()
yamaps_update_7000 in ./yamaps.install
Implements hook_update_N().

File

./yamaps.install, line 11
Install, update, and uninstall functions for the yamaps module.

Code

function yamaps_field_schema($field) {
  return [
    'columns' => [
      'coords' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'Coordinates for "Yandex Maps" object.',
      ],
      'type' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'yandex#map',
        'description' => 'Type of "Yandex Maps" object.',
      ],
      'placemarks' => [
        'type' => 'text',
        'not null' => TRUE,
        'description' => 'Settings and data for "Yandex Maps" placemark.',
      ],
      'lines' => [
        'type' => 'text',
        'not null' => TRUE,
        'description' => 'Settings and data for "Yandex Maps" lines.',
      ],
      'polygons' => [
        'type' => 'text',
        'not null' => TRUE,
        'description' => 'Settings and data for "Yandex Maps" polygons.',
      ],
      'routes' => [
        'type' => 'text',
        'not null' => TRUE,
        'description' => 'Settings and data for "Yandex Maps" route.',
      ],
      'hide' => [
        'type' => 'int',
        'default' => 0,
        'description' => 'Flag defining whether "Yandex Maps" field should be hidden for end user or not.',
      ],
    ],
    'indexes' => [],
  ];
}