X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-yoomedia.php;h=e2f6d71616fd23da636e200125b26e96d39b9c54;hp=3dccf5fae5029695d2072440d8e0578a29984fcb;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/extensions/ext-yoomedia.php b/inc/extensions/ext-yoomedia.php index 3dccf5fae5..e2f6d71616 100644 --- a/inc/extensions/ext-yoomedia.php +++ b/inc/extensions/ext-yoomedia.php @@ -44,17 +44,17 @@ if (!defined('__SECURITY')) { } // Version number -EXT_SET_VERSION("0.0"); +EXT_SET_VERSION('0.0'); -// Version history array (add more with , "0.1" and so on) -EXT_SET_VER_HISTORY(array("0.0")); +// Version history array (add more with , '0.1.0' and so on) +EXT_SET_VER_HISTORY(array('0.0')); // This extension is deprecated! // Only since 'network' is ready! EXT_SET_DEPRECATED("Y"); switch ($EXT_LOAD_MODE) { -case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called) +case 'register': // Do stuff when installation is running (modules.php?module=admin&action=login is called) // SQL commands to run ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `yoomedia_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `yoomedia_sid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); @@ -84,24 +84,24 @@ UNIQUE `y_type` (`type`,`y_id`) ) TYPE={!_TABLE_TYPE!} COMMENT='Reload lock reminder for Yoo!Media campaigns'"); break; -case "remove": // Do stuff when removing extension +case 'remove': // Do stuff when removing extension // SQL commands to run ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `what` IN('config_yoomedia','list_yoomedia_tm')"); ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_yoomedia_reload`"); break; -case "activate": // Do stuff when admin activates this extension +case 'activate': // Do stuff when admin activates this extension // SQL commands to run break; -case "deactivate": // Do stuff when admin deactivates this extension +case 'deactivate': // Do stuff when admin deactivates this extension // SQL commands to run break; -case "update": // Update an extension +case 'update': // Update an extension switch ($EXT_VER) { - case "0.0.1": // SQL queries for v0.0.1 + case '0.0.1': // SQL queries for v0.0.1 ADD_EXT_SQL(""); // Update notes (these will be set as task text!) @@ -110,10 +110,10 @@ case "update": // Update an extension } break; -case "modify": // When the extension got modified +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. +case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. break; default: // Do stuff when extension is loaded