X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-demo.php;h=29b6d38b0a30ed0a6c45f3b4550e3c0827e43b80;hb=8ace8d6167ff99f5d4f6f89d785e4322457daae0;hp=2c62d68d82d5a7a762d369e587463c0f022cd215;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php index 2c62d68d82..29b6d38b0a 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; -case "modify": // When the extension got modified - 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; + 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: // Do stuff when extension is loaded - break; -} + default: // Unknown extension mode + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + break; +} // END - switch -// +// [EOF] ?>