function block_class_schema in Block Class 6.2
Same name and namespace in other branches
- 6 block_class.install \block_class_schema()
- 7 block_class.install \block_class_schema()
Implements hook_schema().
File
- ./
block_class.install, line 11 - Provides the (un)install and update logic for block_class.
Code
function block_class_schema() {
$schema['block_class'] = array(
'fields' => array(
'module' => array(
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
'description' => 'The module to which the block belongs.',
),
'delta' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => "The ID of the module's blocks.",
),
'css_class' => array(
'type' => 'text',
'size' => 'big',
'description' => 'A serialized PHP array containing the classes for the block.',
),
),
'primary key' => array(
'module',
'delta',
),
);
return $schema;
}