-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgithub_connect.install
More file actions
50 lines (45 loc) · 1.01 KB
/
github_connect.install
File metadata and controls
50 lines (45 loc) · 1.01 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
<?php
/**
* @file
* Install, update and uninstall functions for GitHub connect module.
*/
/**
* Implements hook_install().
*/
function github_connect_install() {
}
/**
* Implements hook_uninstall().
*/
function github_connect_uninstall() {
// Delete our module's variable from the variables table.
variable_del('github_connect_client_id');
variable_del('github_connect_client_secret');}
/**
* Implements hook_schema().
*/
function github_connect_schema() {
$schema['github_connect_users'] = array(
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'access_token' => array(
'description' => 'Token key',
'type' => 'text',
'not null' => TRUE,
),
'timestamp' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('uid'),
);
return $schema;
}