php Id block install 2007 12 18 12 59 20 dries Exp Implementation of h

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
// $Id: block.install,v 1.8 2007/12/18 12:59:20 dries Exp $
/**
* Implementation of hook_schema().
*/
function block_schema() {
$schema['blocks'] = array(
'description' => t('Stores block settings, such as region and visibility settings.'),
'fields' => array(
'bid' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => t('Primary Key: Unique block ID.'),
),
'module' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
'description' => t("The module from which the block originates; for example, 'user' for the Who's Online block, and 'block' for any custom blocks."),
),
'delta' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '0',
'description' => t('Unique ID for block within a module.'),
),
'theme' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
'description' => t('The theme under which the block settings apply.'),
),