You are here

function ds_extras_schema in Display Suite 7.2

Same name and namespace in other branches
  1. 7 modules/ds_extras/ds_extras.install \ds_extras_schema()

Implements hook_schema().

File

modules/ds_extras/ds_extras.install, line 27
Install file.

Code

function ds_extras_schema() {
  $schema['ds_vd'] = array(
    'description' => 'The base table for views displays.',
    // CTools export definitions.
    'export' => array(
      'key' => 'vd',
      'identifier' => 'ds_vd',
      'default hook' => 'ds_vd_info',
      'can disable' => FALSE,
      'api' => array(
        'owner' => 'ds_extras',
        'api' => 'ds_extras',
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
    'fields' => array(
      'vd' => array(
        'description' => 'The primary identifier for the views display.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'label' => array(
        'description' => 'The label for the views display.',
        'type' => 'varchar',
        'length' => 132,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'vd',
    ),
  );
  return $schema;
}