You are here

function royalslider_schema in RoyalSlider Integration 7

Implements hook_schema().

File

./royalslider.install, line 44
Installation hooks for RoyalSlider.

Code

function royalslider_schema() {
  $schema = array();
  $schema['royalslider_optionset'] = array(
    'description' => 'Store RoyalSlider Option Sets.',
    'export' => array(
      'key' => 'name',
      'identifier' => 'preset',
      'default hook' => 'royalslider_default_presets',
      'api' => array(
        'owner' => 'royalslider',
        'api' => 'royalslider_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,
      ),
      'skin' => array(
        'description' => 'The RoyalSlider skin.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'default',
      ),
      'imagestyle_fullscreen' => array(
        'description' => 'The image style for full screen images.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'imagestyle_normal' => array(
        'description' => 'The image style for normal images.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'large',
      ),
      'imagestyle_thumbnail' => array(
        'description' => 'The image style for thumbnail images.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'thumbnail',
      ),
      'options' => array(
        'description' => 'The options array.',
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}