-
Notifications
You must be signed in to change notification settings - Fork 0
/
seo_toolkit.install
63 lines (59 loc) · 1.5 KB
/
seo_toolkit.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
<?php
/**
* @file seo_toolkit.install
*
* Install, uninstall and update hooks for the SEO Toolkit module.
*/
/**
* Implementation of hook_schema().
*
* @return array
*/
function seo_toolkit_schema() {
return array(
'seo_toolkit_log' => array(
'description' => 'SEO Toolkit log',
'fields' => array(
'id' => array(
'description' => 'The primary identifier for a log entry.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,),
'action' => array(
'description' => 'Name of the action performed',
'type' => 'varchar',
'not null' => TRUE,
'length' => 100,
'default' => ''),
'description' => array(
'description' => 'Activity description',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255, ),
'timestamp' => array(
'description' => 'Unix timestamp of log entry',
'type' => 'int',
'not null' => TRUE,
'length' => 13, ),
'uid' => array(
'description' => 'User performing action',
'type' => 'int',
'not null' => TRUE,
'length' => 13, ),
),
'primary key' => array('id'),
),
);
}
/**
* Implementation of hook_install().
*/
function seo_toolkit_install() {
drupal_install_schema('seo_toolkit');
}
/**
* Implementation of hook_uninstall().
*/
function seo_toolkit_uninstall() {
drupal_uninstall_schema('seo_toolkit');
}