/[drupal]/contributions/modules/drupalorg/lists/lists.install
ViewVC logotype

Contents of /contributions/modules/drupalorg/lists/lists.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Jan 29 20:49:17 2009 UTC (9 months, 4 weeks ago) by goba
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Adding install file
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Install and upgrade functionality for drupalorg lists module.
7 */
8
9 /**
10 * Implementation of hook_install().
11 */
12 function lists_install() {
13 // Install lists tables.
14 drupal_install_schema('lists');
15 }
16
17 /**
18 * Implementation of hook_uninstall().
19 */
20 function lists_uninstall() {
21 // Remove lists tables.
22 drupal_uninstall_schema('lists');
23 }
24
25 /**
26 * Implementation of hook_schema().
27 */
28 function lists_schema() {
29 $schema['lists_mailman'] = array(
30 'description' => 'A table to track when forum postings have been mailed to mailman for mass delivery.',
31 'fields' => array(
32 'nid' => array(
33 'description' => 'The primary identifier for a node.',
34 'type' => 'int',
35 'unsigned' => TRUE,
36 'not null' => TRUE,
37 ),
38 'uid' => array(
39 'description' => 'The uid of the person who generated this email.',
40 'type' => 'int',
41 'unsigned' => TRUE,
42 'not null' => TRUE,
43 ),
44 'timestamp' => array(
45 'description' => 'Timestamp when email was sent.',
46 'type' => 'int',
47 'unsigned' => TRUE,
48 'not null' => TRUE,
49 ),
50 ),
51 'primary key' => array('nid'),
52 );
53 return $schema;
54 }

  ViewVC Help
Powered by ViewVC 1.1.2