rewritten to new functions, some parts rewritten to filters
[mailer.git] / inc / extensions / ext-events.php
index 145076f9d0e4f1c4171da2325ecd9d6d43a2cf3c..2e198e1751e9596ee2a903621df5e569f478c5b2 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,10 +66,10 @@ 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;