function ds_extras_schema in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_extras/ds_extras.install \ds_extras_schema()
Implements hook_schema().
1 call to ds_extras_schema()
- ds_extras_update_7004 in modules/
ds_extras/ ds_extras.install - Implements hook_update_N().
File
- modules/
ds_extras/ ds_extras.install, line 11 - 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',
),
);
$schema['cache_ds_panels'] = array(
'description' => 'Cache panel display content created with panel view modes.',
'fields' => array(
'cid' => array(
'description' => 'Primary Key: Unique cache ID.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'description' => 'A collection of data to cache.',
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
),
'expire' => array(
'description' => 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => 'A Unix timestamp indicating when the cache entry was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'serialized' => array(
'description' => 'A flag to indicate whether content is serialized (1) or not (0).',
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'expire' => array(
'expire',
),
),
'primary key' => array(
'cid',
),
);
return $schema;
}