You are here

pdf_to_image.install in PDF to ImageField 7.2

Same filename and directory in other branches
  1. 7.3 pdf_to_image.install

PDF to Image install and enable hooks.

File

pdf_to_image.install
View source
<?php

/**
 * @file
 * PDF to Image install and enable hooks.
 */

/**
 * Implements hook_field_schema().
 */
function pdf_to_image_field_schema($field) {
  return array(
    'columns' => array(
      'fid' => array(
        'description' => 'The {file_managed}.fid being referenced in this field.',
        'type' => 'int',
        'not null' => FALSE,
        'unsigned' => TRUE,
      ),
      'title' => array(
        'description' => "Image title text, for the image's 'title' attribute.",
        'type' => 'varchar',
        'length' => 128,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'fid' => array(
        'fid',
      ),
    ),
    'foreign keys' => array(
      'fid' => array(
        'table' => 'file_managed',
        'columns' => array(
          'fid' => 'fid',
        ),
      ),
    ),
  );
}

Functions