-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_toggle.install
More file actions
40 lines (37 loc) · 866 Bytes
/
ui_toggle.install
File metadata and controls
40 lines (37 loc) · 866 Bytes
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
<?php
/**
* @file
* Install, update and uninstall functions for the ui_toggle module.
*/
/**
* Implements hook_schema().
*/
function ui_toggle_schema() {
$schema['ui_toggle'] = [
'description' => 'Stores the presets.',
'fields' => [
'uid' => [
'description' => 'The user id for the preset.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
'hid' => [
'description' => 'The form hid for the preset.',
'type' => 'varchar_ascii',
'length' => 255,
'not null' => TRUE,
'default' => '',
],
'data' => [
'description' => 'Serialized layout settings.',
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
],
],
'primary key' => ['uid', 'hid'],
];
return $schema;
}