function block_class_schema in Block Class 6
Same name and namespace in other branches
- 6.2 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 block.",
),
'css_class' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'String containing the classes for the block.',
),
),
'primary key' => array(
'module',
'delta',
),
);
return $schema;
}