X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-demo.php;h=0e203993a1364e9bdf962fe58a1151596250afa6;hb=6d9a86d30124a824f1dba5487b0981fc6c96991d;hp=0fcbff1d50111e22138d789541a3ce6eafede551;hpb=d6834211baacaa54b282898fe54dc8c1511f046b;p=mailer.git diff --git a/inc/extensions/ext-demo.php b/inc/extensions/ext-demo.php index 0fcbff1d50..0e203993a1 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; + } // END - switch + break; -case "activate": // Do stuff when admin activates this extension - // SQL commands to run - $SQLs[] = ""; - break; + case 'modify': // When the extension got modified + break; -case "deactivate": // Do stuff when admin deactivates this extension - // SQL commands to run - $SQLs[] = ""; - break; + case 'test': // For testing purposes + 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 'init': // Do stuff when extension is initialized break; - } - break; -default: // Do stuff when extension is loaded - break; -} + default: // Unknown extension mode + reportBug(__FILE__, __LINE__, sprintf('Unknown extension mode %s in extension %s detected.', getExtensionMode(), getCurrentExtensionName())); + break; +} // END - switch -// +// [EOF] ?>