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

Contents of /contributions/modules/mm2/mm2.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Apr 24 11:39:10 2008 UTC (19 months ago) by lordrich
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Initial commit of Mailman 2 module.  Uses Mailman's XMLRPC patch to communicate in order to create Mailman lists from within Drupal.
1 <?php
2 function mm2_install() {
3 switch ($GLOBALS['db_type']) {
4 case 'mysql':
5 case 'mysqli':
6 db_query("CREATE TABLE {mm2} (
7 vid int unsigned NOT NULL default '0',
8 nid int(10) unsigned NOT NULL default '0',
9 owner varchar(255) NOT NULL default '',
10 moderated int(1) unsigned NOT NULL default '0',
11 PRIMARY KEY(vid, nid)
12 )");
13 break;
14 case 'pgsql':
15 die("Don't know how to support Postgresql yet");
16 }
17 }
18
19 function mm2_uninstall() {
20 db_query('DROP TABLE {mm2}');
21 }
22 ?>
23

  ViewVC Help
Powered by ViewVC 1.1.2