function quicktabs_schema in Quick Tabs 6.2
Same name and namespace in other branches
- 6.3 quicktabs.install \quicktabs_schema()
- 6 quicktabs.install \quicktabs_schema()
- 7.3 quicktabs.install \quicktabs_schema()
- 7.2 quicktabs.install \quicktabs_schema()
Implementation of hook_schema().
File
- ./
quicktabs.install, line 6
Code
function quicktabs_schema() {
$schema['quicktabs'] = array(
'description' => 'The quicktabs table.',
'fields' => array(
'qtid' => array(
'description' => 'The primary identifier for a qt block.',
'type' => 'serial',
'unsigned' => TRUE,
'size' => 'big',
'not null' => TRUE,
'disp-width' => '10',
),
'ajax' => array(
'description' => 'Whether this is an ajax views block.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'hide_empty_tabs' => array(
'description' => 'Whether this tabset hides empty tabs.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'default_tab' => array(
'description' => 'Default tab.',
'type' => 'int',
'unsigned' => TRUE,
'size' => 'tiny',
'not null' => TRUE,
),
'title' => array(
'description' => 'The title of this quicktabs block.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'tabs' => array(
'description' => 'A serialized array of the contents of this qt block.',
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'serialize' => TRUE,
),
'style' => array(
'description' => 'The tab style.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'primary key' => array(
'qtid',
),
);
return $schema;
}