Filters for configurable userid exclusion added:
[mailer.git] / inc / extensions / ext-doubler.php
index aaef65a16b5c20668a006966f0cc2e70f3c0afa9..79338de29ff002ca3d5d66ccae52d19a9e330e61 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.1.9');
+setThisExtensionVersion('0.2.0');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
@@ -124,6 +124,9 @@ INDEX (`userid`)",
                // Unregister points data
                unregisterExtensionPointsData('doubler_direct');
                unregisterExtensionPointsData('doubler_reset');
+
+               // Unregister filters
+               unregisterFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', TRUE, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -258,6 +261,14 @@ INDEX (`userid`)",
                                // Update notes
                                setExtensionUpdateNotes("Fehlender Konfigurationseintrag <strong>doubler_used</strong> hinzgef&uuml;gt.");
                                break;
+
+                       case '0.2.0': // SQL queries for v0.2.0
+                               // Register filter
+                               registerFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', FALSE, TRUE, isExtensionDryRun());
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Filter zum Ausschlie&szlig;en des konfigurierten Mitgliedaccounts.");
+                               break;
                } // END - switch
                break;