function flexslider_picture_schema in Picture 7
Same name and namespace in other branches
- 7.2 flexslider_picture/flexslider_picture.install \flexslider_picture_schema()
@file Install, update and schema hooks for the FlexSlider Picture module.
File
- flexslider_picture/
flexslider_picture.install, line 7 - Install, update and schema hooks for the FlexSlider Picture module.
Code
function flexslider_picture_schema() {
$schema = array();
$schema['flexslider_picture_optionset'] = array(
'description' => 'Saves which flexslider optionsets use picture mappings and which use image styles.',
'export' => array(
'key' => 'flexslider_optionset',
'identifier' => 'flexslider_picture_optionset',
'api' => array(
'owner' => 'flexslider_picture',
'api' => 'flexslider_picture_optionset',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'The internal identifier.',
'no export' => TRUE,
),
'flexslider_optionset' => array(
'description' => 'The machine-readable option set name.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'imagestyle_type' => array(
'description' => 'One of image_style or picture_mapping.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'mapping' => array(
'description' => 'The picture mapping for this optionset.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'primary key' => array(
'id',
),
'indexes' => array(
'imagestyle_type' => array(
'imagestyle_type',
),
),
);
return $schema;
}