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

Contents of /contributions/modules/preferred_format/preferred_format.install

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


Revision 1.3 - (show annotations) (download) (as text)
Wed Mar 12 17:05:53 2008 UTC (20 months, 2 weeks ago) by gdevlugt
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
Changes since 1.2: +31 -21 lines
File MIME type: text/x-php
Fixing CVS mistake
1 <?php
2 // $Id: preferred_format.install,v 1.1 2008/02/19 01:51:31 gdevlugt Exp $
3 /**
4 * @file
5 * The install file for the Preferred Format module.
6 */
7
8 /**
9 * Implementation of hook_install().
10 */
11 function preferred_format_install() {
12 drupal_install_schema('preferred_format');
13 }
14
15
16 /**
17 * Implementation of hook_uninstall().
18 */
19 function preferred_format_uninstall() {
20 drupal_uninstall_schema('preferred_format');
21 }
22
23 /**
24 * Implementation of hook_schema().
25 */
26 function preferred_format_schema() {
27 $schema['preferred_format'] = array(
28 'fields' => array(
29 'uid' => array(
30 'type' => 'int',
31 'unsigned' => TRUE,
32 'not null' => TRUE,
33 ),
34 'node_type' => array(
35 'type' => 'varchar',
36 'length' => 32,
37 'not null' => TRUE,
38 ),
39 'format_id' => array(
40 'type' => 'int',
41 'unsigned' => TRUE,
42 'not null' => TRUE,
43 ),
44 ),
45 'primary key' => array('uid', 'node_type', 'format_id'),
46 );
47
48 return $schema;
49 }

  ViewVC Help
Powered by ViewVC 1.1.2