-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlunchnlearn.install
More file actions
36 lines (34 loc) · 791 Bytes
/
Copy pathlunchnlearn.install
File metadata and controls
36 lines (34 loc) · 791 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
<?php
/**
* @file
* Module install file
*/
/**
* Implementation of hook_schema
*/
function lunchnlearn_schema() {
$schema = array();
$schema['lunchnlearn'] = array(
'description' => t('LunchNLearn Table'),
'fields' => array(
'id' => array('type' => 'serial'),
'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 1),
'uid' => array('type' => 'int', 'not null' => TRUE),
'title' => array('type' => 'varchar', 'length' => 255),
),
'primary key' => array('id'),
);
return $schema;
}
/**
* Implementation of hook_install
*/
function lunchnlearn_install() {
drupal_install_schema('lunchnlearn');
}
/**
* Implementation of hook_uninstall
*/
function lunchnlearn_uninstall() {
drupal_uninstall_schema('lunchnlearn');
}