You are here

image_field_caption.install in Image Field Caption 7

Same filename and directory in other branches
  1. 8 image_field_caption.install
  2. 7.2 image_field_caption.install

File

image_field_caption.install
View source
<?php

/**
 * Implements hook_schema().
 */
function image_field_caption_schema() {
  $schema['image_field_caption'] = array(
    'description' => 'The base table for the image_field_caption module.',
    'fields' => array(
      'fid' => array(
        'description' => 'The file id.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'caption' => array(
        'description' => 'The caption text.',
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'unique keys' => array(
      'fid' => array(
        'fid',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
image_field_caption_schema Implements hook_schema().