function imagecrop_schema in Image javascript crop 6
Same name and namespace in other branches
- 7 imagecrop.install \imagecrop_schema()
Implementation of hook_schema().
File
- ./
imagecrop.install, line 25 - Install file.
Code
function imagecrop_schema() {
$schema['imagecrop'] = array(
'fields' => array(
'fid' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'presetname' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'reference' => array(
'type' => 'varchar',
'length' => '40',
'not null' => TRUE,
'default' => '',
),
'xoffset' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'yoffset' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'width' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'height' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'scale' => array(
'type' => 'varchar',
'length' => '10',
'not null' => TRUE,
'default' => 'original',
),
),
'primary key' => array(
'fid',
'presetname',
'reference',
),
);
return $schema;
}