From ed30c60150ffda0301eb1f8d30c93cac94de41df Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 25 Jul 2011 10:38:22 -0400
Subject: [PATCH] Fixed some warnings in the installer.
---
server/mods-available/mail_module.inc.php | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/server/mods-available/mail_module.inc.php b/server/mods-available/mail_module.inc.php
index 1697f73..23e0b8d 100644
--- a/server/mods-available/mail_module.inc.php
+++ b/server/mods-available/mail_module.inc.php
@@ -52,7 +52,23 @@
'mail_get_delete',
'mail_content_filter_insert',
'mail_content_filter_update',
- 'mail_content_filter_delete');
+ 'mail_content_filter_delete',
+ 'mail_mailinglist_insert',
+ 'mail_mailinglist_update',
+ 'mail_mailinglist_delete');
+
+ //* This function is called during ispconfig installation to determine
+ // if a symlink shall be created for this plugin.
+ function onInstall() {
+ global $conf;
+
+ if($conf['services']['mail'] == true) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
/*
This function is called when the module is loaded
@@ -85,6 +101,7 @@
$app->modules->registerTableHook('mail_user','mail_module','process');
$app->modules->registerTableHook('mail_get','mail_module','process');
$app->modules->registerTableHook('mail_content_filter','mail_module','process');
+ $app->modules->registerTableHook('mail_mailinglist','mail_module','process');
}
@@ -132,6 +149,11 @@
if($action == 'u') $app->plugins->raiseEvent('mail_content_filter_update',$data);
if($action == 'd') $app->plugins->raiseEvent('mail_content_filter_delete',$data);
break;
+ case 'mail_mailinglist':
+ if($action == 'i') $app->plugins->raiseEvent('mail_mailinglist_insert',$data);
+ if($action == 'u') $app->plugins->raiseEvent('mail_mailinglist_update',$data);
+ if($action == 'd') $app->plugins->raiseEvent('mail_mailinglist_delete',$data);
+ break;
} // end switch
} // end function
--
Gitblit v1.9.1