-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent_grabber.install
49 lines (44 loc) · 1.17 KB
/
content_grabber.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
<?php
/**
* Implementation of hook_install().
*/
function content_grabber_install() {
drupal_install_schema('content_grabber');
}
/**
* Implementation of hook_uninstall().
*/
function content_grabber_uninstall() {
drupal_uninstall_schema('content_grabber');
}
/**
* Implementation of hook_schema().
*/
function content_grabber_schema() {
$schema['content_grabber_ids'] = array(
'description' => "Grabbed item's IDs",
'fields' => array(
'item_id' => array(
'type' => 'int',
'size' => 'medium',
'unsigned' => TRUE,
'not null' => TRUE,
),
'page_id' => array(
'type' => 'int',
'size' => 'small',
'length' => '4',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Page number the item was from'
),
'module' => array(
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
'description' => 'Module related item',
),
),
);
return $schema;
}