-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedimporter.install
executable file
·55 lines (49 loc) · 1.28 KB
/
feedimporter.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
<?php
/* $Id: feedimporter.install,v 1.1 2008/02/18 16:47:36 sanduhrs Exp $ */
/**
* Implementation of hook_install().
*/
function feedimporter_install() {
drupal_install_schema('feedimporter');
}
/**
* Implementation of hook_uninstall().
*/
function feedimporter_uninstall() {
cache_clear_all('feedimporter', 'cache', TRUE);
drupal_uninstall_schema('feedimporter');
variable_del("feedimporter_delicious");
variable_del("feedimporter_magnolia");
}
/**
* Implementation of hook_schema().
*/
function feedimporter_schema() {
$schema['feedimporter'] = array(
'description' => t('Stores URLs.'),
'fields' => array(
'urlid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('Primary Key: URL ID.'),
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('The NodeID of the Node.'),
),
'url' => array(
'type' => 'text',
'not null' => FALSE,
'size' => 'normal',
'description' => t('The URL of the Item.'),
),
),
'primary key' => array('urlid'),
'indexes' => array('feedimporter_nid' => array('nid')),
);
return $schema;
}