You are here

yamaps_example_feature.features.field_base.inc in Yandex.Maps 7

Exports Drupal fields.

File

modules/yamaps_example_feature/yamaps_example_feature.features.field_base.inc
View source
<?php

/**
 * @file
 * Exports Drupal fields.
 */

/**
 * Implements hook_field_default_field_bases().
 */
function yamaps_example_feature_field_default_field_bases() {
  $field_bases = [];

  // Exported field_base: 'body'.
  $field_bases['body'] = [
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => [
      0 => 'node',
    ],
    'field_name' => 'body',
    'foreign keys' => [
      'format' => [
        'columns' => [
          'format' => 'format',
        ],
        'table' => 'filter_format',
      ],
    ],
    'indexes' => [
      'format' => [
        0 => 'format',
      ],
    ],
    'locked' => 0,
    'module' => 'text',
    'settings' => [],
    'translatable' => 0,
    'type' => 'text_with_summary',
  ];

  // Exported field_base: 'field_yandex_maps_example_field'.
  $field_bases['field_yandex_maps_example_field'] = [
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => [],
    'field_name' => 'field_yandex_maps_example_field',
    'foreign keys' => [],
    'indexes' => [],
    'locked' => 0,
    'module' => 'yamaps',
    'settings' => [
      'display_options' => [
        'close_button_text' => 'Close map',
        'display_type' => 'map_button',
        'height' => '400px',
        'open_button_text' => 'Open map example text',
        'width' => '100%',
      ],
    ],
    'translatable' => 0,
    'type' => 'field_yamaps',
  ];
  return $field_bases;
}

Functions

Namesort descending Description
yamaps_example_feature_field_default_field_bases Implements hook_field_default_field_bases().