X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-demo.php;h=7c5b97371222c6a67011da986f2b17a22ddc781a;hb=0187fd5903cddd98c2152dbb4c84da58e5083303;hp=1a6594664e9bfbf0add3ace99360a3338cd68983;hpb=e72031bcfdcd8e91f62bec6cc88f36b7a11d9221;p=mailer.git diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php index 1a6594664e..7c5b973712 100644 --- a/inc/extensions/ext-demo.php +++ b/inc/extensions/ext-demo.php @@ -1,7 +1,7 @@ {?mt_word?}, {?mt_word2?} und {?mt_word3?} sind austauschbar."); + break; + } + break; -case "deactivate": // Do stuff when admin deactivates this extension - // SQL commands to run - ADD_SQL(""); - break; + case 'modify': // When the extension got modified + break; -case "update": // Update an extension - switch ($EXT_VER) - { - case "0.0.1": // SQL queries for v0.0.1 - // Update notes (these will be set as task text!) - EXT_SET_UPDATE_NOTES("Wörter Mailtausch, Mailtausches und Mailtauscher sind austauschbar."); + case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. break; - } - 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 in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); + break; +} // END - switch -// +// [EOF] ?>