function imagecrop_schema in Image javascript crop 7
Same name and namespace in other branches
- 6 imagecrop.install \imagecrop_schema()
Implements hook_schema().
File
- ./
imagecrop.install, line 13 - Install / Uninstall file for Imagecrop.
Code
function imagecrop_schema() {
$schema['image_crop_settings'] = array(
'description' => 'Stores imagecrop settings for files.',
'fields' => array(
'fid' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'style_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'xoffset' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'size' => 'big',
),
'yoffset' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'size' => 'big',
),
'width' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'size' => 'big',
),
'height' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'size' => 'big',
),
'scale' => array(
'type' => 'varchar',
'length' => '10',
'not null' => TRUE,
'default' => 'original',
),
'rotation' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'fid',
'style_name',
),
);
return $schema;
}