function imageblock_schema in Image Block 6
Same name and namespace in other branches
- 7 imageblock.install \imageblock_schema()
Implements hook_schema().
File
- ./
imageblock.install, line 11 - imageblock.install Contains install and update functions for Image Block module.
Code
function imageblock_schema() {
$schema = array();
$schema['imageblock'] = array(
'description' => 'Stores ',
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "The block's {blocks}.bid.",
),
'body' => array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
'description' => 'Block contents.',
),
'info' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Block description.',
),
'format' => array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
'description' => "Block body's {filter_formats}.format; for example, 1 = Filtered HTML.",
),
'fid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => "The File's {files}.fid.",
),
'data' => array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
'description' => 'A serialized array of name value pairs that are related to the block file.',
),
),
'primary key' => array(
'bid',
'fid',
),
'indexes' => array(
'bid' => array(
'bid',
),
'fid' => array(
'fid',
),
),
);
return $schema;
}