switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
- addMemberMenuSql('order','order','Mailbuchung','N','Y',1);
+ addMemberMenuSql('order', 'order', 'Mailbuchung', 'N', 'Y', 1);
break;
case 'remove': // Do stuff when removing extension
break;
case '0.2.3': // SQL queries for v0.2.3
- addConfigAddSql('order_min', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 10");
+ addConfigAddSql('order_min', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Minimum an Empfänger pro Mailbuchung einstellbar. Standard: 10 Empfänger");
break;
case '0.4.6': // SQL queries for v0.4.6
- addMemberMenuSql('order',NULL,'Mailbuchungen','N','Y',3);
- addMemberMenuSql('order','order2','Framekiller-Mails','N','Y',2);
+ addMemberMenuSql('order', NULL, 'Mailbuchungen', 'N', 'Y', 3);
+ addMemberMenuSql('order', 'order2', 'Framekiller-Mails', 'N', 'Y', 2);
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='order', `sort`=1, `title`='Klick-Mails' WHERE `what`='order' LIMIT 1");
// Update notes (these will be set as task text!)
break;
case '0.5.2': // SQL queries for v0.5.2
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `test_text`");
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `test_subj`");
+ addConfigDropSql('test_text');
+ addConfigDropSql('test_subj');
addConfigAddSql('allow_url_in_text', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
addConfigAddSql('allow_url_in_subject', "ENUM('Y','N') NOT NULL DEFAULT 'N'");