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

Contents of /contributions/modules/commentify/commentify.install

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


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Sat Mar 15 22:13:18 2008 UTC (20 months, 1 week ago) by chrisyates
Branch: DRUPAL-5, MAIN
CVS Tags: start, DRUPAL-5--1-1, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
Initial import of commentify.module
1 <?php
2 // $Id: commentify.install,v 0.1 2007/04/30 cyates Exp $
3
4 /**
5 * Implementation of hook_install().
6 */
7 function commentify_install() {
8 switch ($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query("CREATE TABLE IF NOT EXISTS {commentify} (
12 fid int(20) NOT NULL,
13 nid int(20) NOT NULL,
14 PRIMARY KEY (fid)
15 );");
16
17 db_query("CREATE INDEX {commentify}_fid_idx on commentify(fid);");
18
19 break;
20 }
21 }
22
23 /**
24 * Implementation of hook_uninstall().
25 */
26 function commentify_uninstall() {
27 db_query('DROP TABLE {commentify}');
28 }

  ViewVC Help
Powered by ViewVC 1.1.2