pdf_to_image.install in PDF to ImageField 7.2
Same filename and directory in other branches
PDF to Image install and enable hooks.
File
pdf_to_image.installView 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
Name | Description |
---|---|
pdf_to_image_field_schema | Implements hook_field_schema(). |