-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpgedview.install
49 lines (45 loc) · 1.05 KB
/
phpgedview.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
/**
* @file
* The install file for PHPGEDVIEW allows the module to install (and uninstall)
* itself. This is required as this module uses its own table.
*/
/**
* Implements hook_install().
*/
function phpgedview_install() {
// Create my tables.
drupal_install_schema('phpgedview');
}
/**
* Implements hook_schema().
*/
function phpgedview_schema() {
$schema['phpgedview_user_map'] = array(
'description' => t('The base table for nodes.'),
'fields' => array(
'uid' => array (
'description' => t('The uid of the user from the {users} table.'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'pgv' => array(
'description' => t('I dont know what this is for.'),
'type' => 'varchar',
'length' => '30',
'not null' => TRUE,
'default' => '',
),
),
);
return $schema;
}
/**
* Implements hook_uninstall().
*/
function phpgedview_uninstall() {
// TODO: Clear variables.
// Drop my tables.
drupal_uninstall_schema('phpgedview');
}