-
Notifications
You must be signed in to change notification settings - Fork 1
/
ding_redia_feed.install
48 lines (42 loc) · 1.06 KB
/
ding_redia_feed.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
<?php
/**
* @file
* Installation functions for ding_redia_feed.
*/
/**
* Implementation of hook_install().
*/
function ding_redia_feed_install() {
drupal_install_schema('ding_redia_feed');
}
/**
* Implementation of hook_uninstall().
*/
function ding_redia_feed_uninstall() {
drupal_uninstall_schema('ding_redia_feed');
}
/**
* Implements hook_schema().
*/
function ding_redia_feed_schema() {
$schema = array();
$schema['ding_redia_feed_cat'] = array(
'description' => 'Store info about the redia category used to control placement on the redia iPhone app',
'fields' => array(
'nid' => array(
'description' => 'The {node}.nid of the node displayed in the Redia app.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'category' => array(
'desctiption' => 'The Redia category which determines the node placement in the iPhone app.',
'type' => 'varchar',
'length' => '255',
'default' => '',
'not null' => TRUE,
),
),
);
return $schema;
}