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

Contents of /contributions/modules/messaging/messaging.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Jan 26 12:51:42 2008 UTC (22 months ago) by jareyero
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
Added messaging_message_group() for getting info about a messaging group
Reworked displayed tokens for message configuration
Fixed issue with footer which was rendered twice
Fixed notifications_message_get_part() for fallbacks to work with event types
Fixed issues with messaging_method_info()
1 <?php
2 // $Id: Exp $
3
4 function messaging_install() {
5 switch ($GLOBALS['db_type']) {
6 case 'mysql':
7 case 'mysqli':
8 db_query("CREATE TABLE {messaging_message_parts} (
9 type varchar(100) NOT NULL,
10 method varchar(50) NOT NULL,
11 msgkey varchar(100) NOT NULL,
12 module varchar(255) NOT NULL,
13 message TEXT,
14 INDEX (type),
15 INDEX (method),
16 INDEX (msgkey)
17 ) /*!40100 DEFAULT CHARACTER SET utf8 */");
18 break;
19 case 'pgsql':
20 drupal_set_message('Sorry, no install script for pgsql yet.', 'error');
21 break;
22 }
23 }
24
25 function messaging_uninstall() {
26 db_query("DROP TABLE {messaging_message_parts}");
27 }

  ViewVC Help
Powered by ViewVC 1.1.2