]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-events.php
A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / extensions / ext-events.php
index 145076f9d0e4f1c4171da2325ecd9d6d43a2cf3c..8852716da9b1ddc3748633e95550e374218bb520 100644 (file)
@@ -39,13 +39,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Version number
-$EXT_VERSION = "0.0";
-
-// Auto-set extension version
-if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
+EXT_SET_VERSION("0.0");
 
 // Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0");
+EXT_SET_VER_HISTORY(array("0.0"));
 
 switch ($EXT_LOAD_MODE)
 {
@@ -69,14 +66,17 @@ case "update": // Update an extension
        switch ($EXT_VER)
        {
        case "0.0.1": // SQL queries for v0.0.1
-               $SQLs[] = "";
+               ADD_SQL("");
 
                // Update notes (these will be set as task text!)
-               $UPDATE_NOTES = "";
+               EXT_SET_UPDATE_NOTES("");
                break;
        }
        break;
 
+case "modify": // When the extension got modified
+       break;
+
 case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
        break;