X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-demo.php;h=29b6d38b0a30ed0a6c45f3b4550e3c0827e43b80;hb=447cb1bc3f58d6906321165b071fb9e0c0eeeb59;hp=5e3e6242c511b78a3aa2040fefd9e284b62aacf3;hpb=e1653405d28923c78b2e292125306ccf61138f24;p=mailer.git diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php index 5e3e6242c5..29b6d38b0a 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 - $SQLs[] = ""; - 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!) - $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; -default: // Do stuff when extension is loaded - break; -} -// Language file prefix -$EXT_LANG_PREFIX = "demo"; + case 'init': // Do stuff when extension is initialized + break; -// Extension is always active? -$EXT_ALWAYS_ACTIVE = 'N'; + default: // Unknown extension mode + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + break; +} // END - switch -// +// [EOF] ?>