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

Contents of /contributions/modules/ignore_user/ignore_user.install

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


Revision 1.1 - (show annotations) (download) (as text)
Fri Apr 18 07:19:12 2008 UTC (19 months, 1 week ago) by jaydub
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial commit of ignore_user module.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function ignore_user_install() {
8 switch($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query('CREATE TABLE {ignore_user} (
12 uid INT(11) NOT NULL,
13 iuid INT(11) NOT NULL,
14 PRIMARY KEY (uid, iuid)
15 )');
16 break;
17 case 'pgsql':
18 db_query('CREATE TABLE {ignore_user} (
19 uid INT NOT NULL,
20 iuid INT NOT NULL,
21 PRIMARY KEY (uid, iuid)
22 )');
23 break;
24 }
25 }
26
27 /**
28 * Implementation of hook_uninstall().
29 */
30 function ignore_user_uninstall() {
31 db_query('DELETE {ignore_user}');
32 }

  ViewVC Help
Powered by ViewVC 1.1.2