view_mode_crop-1.0.x-dev/view_mode_crop.install

view_mode_crop.install
<?php

/**
 * @file
 * View mode crop install file.
 */

/**
 * Implements hook_schema().
 */
function view_mode_crop_schema() {
  return [
    'view_mode_crop' => [
      'description' => 'Stores view_mode_crop cropping parameters',
      'fields' => [
        'entity_type' => [
          'description' => 'The entity type',
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
          'default' => '',
        ],
        'entity_id' => [
          'description' => 'The entity id',
          'type' => 'varchar',
          'length' => 128,
          'not null' => TRUE,
          'default' => 0,
        ],
        'field_name' => [
          'description' => 'The field name',
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
          'default' => '',
        ],
        'delta' => [
          'description' => 'The field delta',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
          'default' => 0,
        ],
        'data' => [
          'description' => 'The crop data',
          'type' => 'text',
          'size' => 'big',
          'not null' => TRUE,
        ],
      ],
      'primary key' => [
        'entity_type',
        'entity_id',
        'field_name',
        'delta',
      ],
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc