You are here

function _slick_schema in Slick Carousel 7.2

Same name and namespace in other branches
  1. 7.3 slick.install \_slick_schema()

Returns schema for slick.

2 calls to _slick_schema()
slick_schema in ./slick.install
Implements hook_schema().
slick_update_7005 in ./slick.install
Create a table "slick_optionset" to store optionsets for CTools exportables.

File

./slick.install, line 55
Installation actions for Slick.

Code

function _slick_schema() {
  return array(
    'description' => 'Store option sets for slick instances.',
    'export' => array(
      'key' => 'name',
      'key name' => 'Optionset',
      'identifier' => 'preset',
      'admin_title' => 'label',
      'default hook' => 'slick_default_presets',
      'bulk export' => TRUE,
      'api' => array(
        'owner' => 'slick',
        'api' => 'slick_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,
      ),
      'label' => array(
        'description' => 'The human-readable label for this option set.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'breakpoints' => array(
        'description' => 'The number of defined breakpoints.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'skin' => array(
        'description' => 'The slick skin.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'options' => array(
        'description' => 'The options array.',
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
}