You are here

function video_embed_field_schema in Video Embed Field 7.2

Implements hook_schema().

1 call to video_embed_field_schema()
video_embed_field_update_7001 in ./video_embed_field.install
Adds video style storage table.

File

./video_embed_field.install, line 59
Install, update and uninstall functions for the video_embed_field module.

Code

function video_embed_field_schema() {
  $schema['vef_video_styles'] = array(
    'description' => 'Stores video embed styles.',
    'export' => array(
      'key' => 'name',
      'identifier' => 'video_embed_style',
      'default hook' => 'default_video_embed_styles',
      'api' => array(
        'owner' => 'video_embed_field',
        'api' => 'default_video_embed_styles',
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
    'fields' => array(
      'name' => array(
        'description' => 'The machine-readable option set name.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'title' => array(
        'description' => 'The human-readable title for this option set.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'data' => array(
        'description' => 'The configuration data for the style.',
        'type' => 'blob',
        'size' => 'big',
        'not null' => TRUE,
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}