-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtime_log.install
More file actions
49 lines (44 loc) · 922 Bytes
/
time_log.install
File metadata and controls
49 lines (44 loc) · 922 Bytes
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
<?php
/**
* Time Log
* Adaptation of Support Timer module
**/
/**
* task database schema definition.
*/
function time_log_schema() {
$schema['time_log'] = array(
'description' => 'Stores timer information about tasks.',
'fields' => array(
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'default' => 0,
),
'time' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array('nid'),
array(),
);
return $schema;
}
/**
* Implementation of hook_install()
*/
function time_log_install() {
drupal_install_schema('time_log');
}
/**
* Implementation of hook_uninstall()
*/
function time_log_uninstall() {
drupal_uninstall_schema('time_log');
variable_del('time_log_unload_warning');
variable_del('time_log_start');
}