function galleria_schema in Galleria 7
Implements hook_schema(). Always returns the latest schema version!
File
- ./
galleria.install, line 11 - Install, update and uninstall functions for the galleria module.
Code
function galleria_schema() {
return array(
'galleria_optionset' => array(
'description' => 'Store option sets for Galleria instances.',
'export' => array(
'key' => 'name',
'identifier' => 'preset',
'default hook' => 'galleria_default_presets',
'api' => array(
'owner' => 'galleria',
'api' => 'galleria_default_preset',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'name' => array(
'description' => 'The machine-readable option set name.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'title' => array(
'description' => 'The human-readable title for this option set.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'theme' => array(
'description' => 'The Galleria theme.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'classic',
),
'plugins' => array(
'description' => 'The Galleria plugins to be loaded.',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
),
'imagestyle_thumb' => array(
'description' => 'The image style for thumbnails.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'galleria_thumb',
),
'imagestyle_normal' => array(
'description' => 'The image style for normal images.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'galleria_zoom',
),
'imagestyle_big' => array(
'description' => 'The image style for big images (lightbox and fullscreen).',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'options' => array(
'description' => 'The options array.',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
),
),
'primary key' => array(
'name',
),
),
);
}