function draggableviews_schema in DraggableViews 6
Same name and namespace in other branches
- 8 draggableviews.install \draggableviews_schema()
- 6.3 draggableviews.install \draggableviews_schema()
- 6.2 draggableviews.install \draggableviews_schema()
- 7.2 draggableviews.install \draggableviews_schema()
- 7 draggableviews.install \draggableviews_schema()
- 2.0.x draggableviews.install \draggableviews_schema()
Implementation of hook_schema().
File
- ./
draggableviews.install, line 12 - Draggableviews - Makes views draggable
Code
function draggableviews_schema() {
$schema['draggableviews_collapsed'] = array(
'description' => t('The table that knows whether sub-lists are collapsed or expanded.'),
'fields' => array(
'uid' => array(
'description' => t('The user.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'parent_nid' => array(
'description' => t('The parent node.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'collapsed' => array(
'description' => t('The state.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'uid',
'parent_nid',
),
);
return $schema;
}