-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfwizard.install
More file actions
82 lines (77 loc) · 2.05 KB
/
confwizard.install
File metadata and controls
82 lines (77 loc) · 2.05 KB
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
<?php
/**
* @file confwizard.install
* Install file for confwizard
*/
/**
* Implementation of hook_install
*/
function confwizard_install() {
drupal_install_schema('confwizard');
}
/**
* Implementation of hook_uninstall
*/
function confwizard_uninstall() {
drupal_uninstall_schema('confwizard');
}
/**
* Implementation of hook_schema
*/
function confwizard_schema() {
$schema['confwizard_url'] = array(
'description' => 'URLs for conf wizard',
'export' => array(
'key' => 'name',
'identifier' => 'cw_url',
'default hook' => 'default_confwizard_cw_url', // Function hook name
'api' => array(
'owner' => 'confwizard',
'api' => 'default_confwizard_cw_url', // Base name for api include files
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'name' => array(
'description' => 'Unique name for exporting',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'label' => array(
'description' => 'Label for admin interface',
'type' => 'varchar',
'length' => 256,
'not null' => TRUE,
),
'path' => array(
'description' => 'Internal URL to take people to and aid configuration',
'type' => 'varchar',
'length' => 4096,
'not null' => TRUE,
),
'descr' => array(
'description' => 'More information where appropriate',
'type' => 'text',
'not null' => FALSE,
),
'feature' => array(
'description' => 'Which feature brought this in? Note: not part of the exportable.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'no export' => TRUE,
),
'done' => array(
'description' => 'Has this configuration been marked as done? Note: not part of the exportable.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'no export' => TRUE,
),
),
'primary key' => array('name'),
);
return $schema;
}