/[drupal]/contributions/modules/profile_privacy/profile_privacy.install
ViewVC logotype

Contents of /contributions/modules/profile_privacy/profile_privacy.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Fri Mar 13 23:28:55 2009 UTC (8 months, 2 weeks ago) by coltrane
Branch: MAIN
Changes since 1.2: +9 -8 lines
File MIME type: text/x-php
Syncing HEAD with recent DRUPAL-6--1 commits.
1 <?php
2 // $Id: profile_privacy.install,v 1.2 2008/07/10 18:40:08 quicksketch Exp $
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function profile_privacy_schema() {
8 $schema['profile_privacy_fields'] = array(
9 'fields' => array(
10 'fid' => array(
11 'type' => 'int',
12 'unsigned' => TRUE,
13 'not null' => TRUE,
14 'default' => 0,
15 ),
16 'privacy' => array(
17 'type' => 'int',
18 'size' => 'tiny',
19 'not null' => TRUE,
20 'default' => 0,
21 )
22 ),
23 'primary key' => array('fid')
24 );
25
26 $schema['profile_privacy_values'] = array(
27 'fields' => array(
28 'fid' => array(
29 'type' => 'int',
30 'unsigned' => TRUE,
31 'default' => 0,
32 ),
33 'uid' => array(
34 'type' => 'int',
35 'unsigned' => TRUE,
36 'default' => 0,
37 ),
38 'private' => array(
39 'type' => 'int',
40 'size' => 'tiny',
41 'not null' => TRUE,
42 'default' => 0,
43 )
44 ),
45 'indexes' => array(
46 'uid' => array('uid'),
47 'fid' => array('fid'),
48 )
49 );
50
51 return $schema;
52 }
53
54 /**
55 * Implementation of hook_install().
56 */
57 function profile_privacy_install() {
58 drupal_install_schema('profile_privacy');
59 }
60
61 /**
62 * Implementation of hook_uninstall().
63 */
64 function profile_privacy_uninstall() {
65 drupal_uninstall_schema('profile_privacy');
66 }

  ViewVC Help
Powered by ViewVC 1.1.2