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

Contents of /contributions/modules/phpbbPostNode/phpbbPostNode.install

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


Revision 1.1 - (show annotations) (download) (as text)
Sun Apr 29 20:23:33 2007 UTC (2 years, 7 months ago) by peligrorice
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 // $Id: phpbbPostNode.install,v 0.0.0.1 2007/02/16 peligrorice
3
4 /**
5 * Implementation of hook_install().
6 * Creates a table of the variables that will be needed to use this module
7 */
8 function phpbbPostNode_install() {
9 switch ($GLOBALS['db_type']) {
10 case 'mysql':
11 case 'mysqli':
12 db_query("CREATE TABLE {phpbbPostNode} (
13 nid int(10) unsigned primary key,
14 phpbbPostNode_topic int(11),
15 phpbbPostNode_teaser varchar(128)
16 ) /*!40100 DEFAULT CHARACTER SET utf8 */;
17 ");
18 break;
19
20 case 'pgsql':
21 db_query("CREATE TABLE {phpbbPostNode} (
22 nid integer PRIMARY KEY,
23 phpbbPostNode_topic integer,
24 phpbbPostNode_teaser character(128)
25 );
26 ");
27 break;
28 }
29 }

  ViewVC Help
Powered by ViewVC 1.1.2