-
Notifications
You must be signed in to change notification settings - Fork 0
/
etherpad.install
39 lines (35 loc) · 1.05 KB
/
etherpad.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
<?php
/**
*
* Each node receives a unique etherpad group and only this group
* can edit/view that document e.g. lets say we have node 103 which
* we assign a etherpad group "etherpad001". In order to view/edit
* the node 103 using etherpad, one would first have to first know the
* etherpad001 ID before he can edit anythign. The whole user-based
* authentication takes place on drupal level and only authenticated
* users can get as far as getting the ID of the group id and hence
* get read or readwrite access to it.
*/
function etherpad_schema() {
$schema['etherpad_groups'] = array(
'description' => 'Maps nodes to etherpad groups.',
'fields' => array(
'nid' => array(
'type' => 'int',
'description' => 'The primary identifier for a node.',
'unsigned' => TRUE,
),
'egid' => array(
'description' => 'Etherpad Group ID',
'type' => "varchar",
'length' => 255,
),
),
'primary key' => array('nid'),
'indexes' => array(
'etherpadid' => array('egid')
),
);
return $schema;
}
?>