X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-demo.php;h=f68a40dccf9e93e0691a3afb9ccdb12eb715dca2;hb=188495baa4eae4327a063f99989ea503598b2174;hp=db8cd56bb784fc12740194a6e5e21167fb65caad;hpb=56156f6c4392510cdbe0eb4f2ccefc23b43e2672;p=mailer.git diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php index db8cd56bb7..f68a40dccf 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 "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. - break; + case 'modify': // When the extension got modified + break; -default: // Do stuff when extension is loaded - break; -} + case 'test': // For testing purposes + 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] ?>