X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-demo.php;h=13fee8950bf206a384fb65bdc0a46b05628f81e0;hb=fd0bc034f4e10c4b0feb28e85dc302ddce919339;hp=264b3aba703e3d94c7edfb89c4964b4e903e7341;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git
diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php
index 264b3aba70..13fee8950b 100644
--- a/inc/extensions/ext-demo.php
+++ b/inc/extensions/ext-demo.php
@@ -1,7 +1,7 @@
Mailtausch, Mailtausches und Mailtauscher sind austauschbar.";
+ case 'update': // Update an extension
+ switch (getCurrentExtensionVersion()) {
+ case '0.0.1': // SQL queries for v0.0.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Wörter {?mt_word?}, {?mt_word2?} und {?mt_word3?} sind austauschbar.");
+ break;
+ }
break;
- }
- break;
-default: // Do stuff when extension is loaded
- break;
-}
-// Language file prefix
-$EXT_LANG_PREFIX = "demo";
+ case 'modify': // When the extension got modified
+ break;
-// Extension is always active?
-$EXT_ALWAYS_ACTIVE = "N";
+ case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+ break;
+
+ case 'init': // Do stuff when extension is initialized
+ break;
+
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+ break;
+} // END - switch
-//
+// [EOF]
?>