function accordion_blocks_schema in Accordion Blocks 7.2
Same name and namespace in other branches
- 7.3 accordion_blocks.install \accordion_blocks_schema()
Implements hook_schema().
File
- ./
accordion_blocks.install, line 19 - Install and uninstall functions for the accordion blocks module.
Code
function accordion_blocks_schema() {
$schema['accordion_blocks'] = array(
'fields' => array(
'id' => array(
'description' => 'id of the accordion widget',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'title' => array(
'description' => 'Title of the accordion widget',
'type' => 'varchar',
'length' => 150,
'not null' => TRUE,
'default' => '',
),
'content' => array(
'description' => 'serailized content used in the accordion widget',
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
'serialize' => TRUE,
),
),
'primary key' => array(
'id',
),
);
return $schema;
}