-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformulize.install
More file actions
65 lines (60 loc) · 1.35 KB
/
formulize.install
File metadata and controls
65 lines (60 loc) · 1.35 KB
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
64
65
<?php
// $Id$
/**
* @file
* Contains install and update functions for formulize.
*/
/**
* Implementation of hook_install()
* --+MedievalSpawn Drupal7 Update+-- Deprecated
*function formulize_install() {
* drupal_install_schema('formulize');
*}
*/
/**
* Implementation of hook_uninstall()
* --+MedievalSpawn Drupal7 Update+-- Deprecated
*function formulize_uninstall() {
*drupal_uninstall_schema('formulize');
*variable_del('formulize_full_path');
*}
*/
/**
* Implementation of hook_schemea
*/
function formulize_schema() {
$schema['formulize'] = array(
//* --+MedievalSpawn Drupal7 Update+-- Description is no longer translated.
'description' => 'The table for formulize data.',
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0
),
'screen_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
'description' => 'The screen id from Formulize.'
),
),
'indexes' => array(
'nid' => array('nid')
),
'unique_keys' => array(
'nid_vid' => array('nid', 'vid'),
'nid' => array('nid')
),
'primary key' => array('vid'),
);
return $schema;
}