-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnode_layout.install
53 lines (49 loc) · 1.16 KB
/
node_layout.install
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* @file
* Install hooks for the node_layout module.
*/
/**
* Implements hook_schema().
*/
function node_layout_schema() {
$schema['node_layout'] = array(
'description' => 'Node layouts',
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'primary Key: unique id.',
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'description' => 'Node ID that the layout belongs to.',
),
'data' => array(
'description' => 'Layout data.',
'type' => 'blob',
'not null' => TRUE,
'size' => 'big',
),
),
'primary key' => array('id'),
);
$schema['node_layout_references'] = array(
'description' => 'Keeps track of content attached to layouts.',
'fields' => array(
'cid' => array(
'type' => 'int',
'not null' => TRUE,
'description' => 'ID of content.',
),
'lid' => array(
'type' => 'int',
'not null' => TRUE,
'description' => 'ID layout attached to.',
),
),
'primary key' => array('cid'),
);
return $schema;
}