function cloud_zoom_schema in Cloud Zoom 6
Implementation of hook_schema()
File
- ./
cloud_zoom.install, line 64 - cloud_zoom.install Contains all the install hooks required - such as schema, install and uninstall
Code
function cloud_zoom_schema() {
$schema['cloud_zoom_presets'] = array(
'description' => 'Stored Cloud Zoom presets.',
'fields' => array(
'name' => array(
'description' => t('The primary identifier for an cloud_zoom preset.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'view_preset' => array(
'description' => t('The preset name for the smaller images.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'zoom_preset' => array(
'description' => t('The preset name for the zoomed image.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'settings' => array(
'description' => t('Serialized preset settings.'),
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
'serialize' => TRUE,
),
),
'primary key' => array(
'name',
),
);
return $schema;
}