-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfbs.install
84 lines (73 loc) · 1.9 KB
/
fbs.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
//$Id
/**
* Implementation of hook_install().
*/
function fbs_install() {
drupal_install_schema('fbs');
}
/**
* Implementation of hook_uninstall().
*/
function fbs_uninstall() {
drupal_uninstall_schema('fbs');
}
/**
* Implementation of hook_schema()
*/
function fbs_schema() {
$schema = array();
$schema['fbs_preset'] = array(
'description' => 'Storage for user-defined fb plugins templates.',
'export' => array(
'key' => 'name',
'identifier' => 'fbs_preset',
'default hook' => 'fbs_default_presets', // Function hook name.
'api' => array(
'owner' => 'fbs',
'api' => 'fbs', // Base name for api include files.
'minimum_version' => 1,
'current_version' => 1,
),
'load callback' => 'fbs_preset_load',
),
'fields' => array(
'name' => array(
'description' => 'The primary identifier for a plugin preset.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'description' => 'Description for this plugin preset.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'plugin_type' => array(
'description' => 'Type of this preset.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'settings' => array(
'description' => 'Serialized storage of drupal related plugin settings.',
'type' => 'text',
'serialize' => TRUE,
),
'fb_attrs' => array(
'description' => 'Serialized storage of facebook related plugin settings',
'type' => 'text',
'serialize' => TRUE,
),
),
'primary key' => array('name'),
'indexes' => array(
'type' => array('plugin_type'),
),
);
return $schema;
}