-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailman_sync.install
55 lines (52 loc) · 1.43 KB
/
mailman_sync.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
<?php
function mailman_sync_install() {
variable_set('mailman_sync_key', _mailman_sync_generate_key());
}
function mailman_sync_schema() {
$schema['mailman_sync'] = array(
'description' => 'Configuration table for Mailman Synchronization module.',
'fields' => array(
'group_id' => array(
'description' => 'The primary identifier for a group.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'mailman_list' => array(
'description' => 'The matching mailman list name.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'mailman_password' => array(
'description' => 'The mailman list password.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'status' => array(
'description' => 'Whether group synchronization is enabled.',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('group_id'),
);
return $schema;
}
/**
* Add mailman password column to mailman_sync table.
*/
function mailman_sync_update_7001() {
db_add_field('mailman_sync', 'mailman_password', array(
'description' => 'The mailman list password.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
));
}