-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbbb.install
116 lines (112 loc) · 3.37 KB
/
bbb.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* @file
* Big Blue Button - Enables universities and colleges to deliver a high-quality
* learning experience.
*
* @author
* Stefan Auditor <[email protected]>
*/
/**
* Implement hook_schema().
*/
function bbb_schema() {
$schema['bbb_meetings'] = array(
'description' => t('The meeting table'),
'fields' => array(
'nid' => array(
'description' => t('The primary node id'),
'type' => 'int',
'not null' => TRUE,
),
'name' => array(
'description' => t('A name for the meeting'),
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'meetingID' => array(
'description' => t('A meeting ID that can be used to identify this meeting by the third party application'),
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'attendeePW' => array(
'description' => t('The password that will be required for attendees to join the meeting'),
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
),
'moderatorPW' => array(
'description' => t('The password that will be required for moderators to join the meeting or for certain administrative actions'),
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
),
'welcome' => array(
'description' => t('A welcome message that gets displayed on the chat window when the participant joins'),
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'dialNumber' => array(
'description' => t('The dial access number that participants can call in using regular phone'),
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
),
'voiceBridge' => array(
'description' => t('Voice conference number that participants enter to join the voice conference.'),
'type' => 'int',
'not null' => TRUE,
),
'logoutURL' => array(
'description' => t('The URL that the BigBlueButton client will go to after users logged out'),
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'record' => array(
'description' => t('A boolean to indicate whether or not the meeting will be recorded.'),
'type' => 'int',
'size' => 'tiny',
'default' => 0,
'not null' => TRUE,
),
'initialized' => array(
'description' => t('Initialization timestamp'),
'type' => 'int',
'not null' => TRUE,
),
'created' => array(
'description' => t('Meeting created timestamp'),
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array('nid'),
);
return $schema;
}
/**
* Add a column to the bbb_meetings table for the recording option
*/
function bbb_update_7100() {
if (!db_field_exists('bbb_meetings', 'record')) {
$new_field = array(
'type' => 'int',
'default' => 0,
'size' => 'tiny',
'not null' => TRUE,
'description' => 'A boolean to indicate whether or not this meeting will be recorded.',
);
db_add_field('bbb_meetings', 'record', $new_field);
}
}
/**
* Implement hook_uninstall().
*/
function bbb_uninstall() {
// Remove variables
db_query("DELETE FROM {variable} WHERE name LIKE 'bbb_%'");
}