From 638811f588af90b3bea356f9b53da0be00a89148 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Mon, 19 Jan 2026 18:36:12 +0100 Subject: [PATCH] =?UTF-8?q?[19/01/2026]=20Cr=C3=A9ation=20d'un=20module=20?= =?UTF-8?q?pour=20g=C3=A9rer=20la=20suppression=20automatique=20des=20cont?= =?UTF-8?q?acts=20cr=C3=A9=C3=A9s=20dans=20Mailjet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/modules/MailjetPurge/Config/config.xml | 50 +++++++++++++++++ .../MailjetPurge/Config/config_dev.xml | 50 +++++++++++++++++ .../MailjetPurge/Config/config_prod.xml | 50 +++++++++++++++++ .../MailjetPurge/Config/config_test.xml | 50 +++++++++++++++++ local/modules/MailjetPurge/Config/module.xml | 41 ++++++++++++++ local/modules/MailjetPurge/Config/routing.xml | 31 +++++++++++ local/modules/MailjetPurge/Config/schema.xml | 30 ++++++++++ local/modules/MailjetPurge/I18n/en_US.php | 4 ++ local/modules/MailjetPurge/I18n/fr_FR.php | 4 ++ local/modules/MailjetPurge/MailjetPurge.php | 28 ++++++++++ local/modules/MailjetPurge/Readme.md | 55 +++++++++++++++++++ local/modules/MailjetPurge/composer.json | 11 ++++ 12 files changed, 404 insertions(+) create mode 100644 local/modules/MailjetPurge/Config/config.xml create mode 100644 local/modules/MailjetPurge/Config/config_dev.xml create mode 100644 local/modules/MailjetPurge/Config/config_prod.xml create mode 100644 local/modules/MailjetPurge/Config/config_test.xml create mode 100644 local/modules/MailjetPurge/Config/module.xml create mode 100644 local/modules/MailjetPurge/Config/routing.xml create mode 100644 local/modules/MailjetPurge/Config/schema.xml create mode 100644 local/modules/MailjetPurge/I18n/en_US.php create mode 100644 local/modules/MailjetPurge/I18n/fr_FR.php create mode 100644 local/modules/MailjetPurge/MailjetPurge.php create mode 100644 local/modules/MailjetPurge/Readme.md create mode 100644 local/modules/MailjetPurge/composer.json diff --git a/local/modules/MailjetPurge/Config/config.xml b/local/modules/MailjetPurge/Config/config.xml new file mode 100644 index 00000000..425eb296 --- /dev/null +++ b/local/modules/MailjetPurge/Config/config.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/modules/MailjetPurge/Config/config_dev.xml b/local/modules/MailjetPurge/Config/config_dev.xml new file mode 100644 index 00000000..425eb296 --- /dev/null +++ b/local/modules/MailjetPurge/Config/config_dev.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/modules/MailjetPurge/Config/config_prod.xml b/local/modules/MailjetPurge/Config/config_prod.xml new file mode 100644 index 00000000..425eb296 --- /dev/null +++ b/local/modules/MailjetPurge/Config/config_prod.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/modules/MailjetPurge/Config/config_test.xml b/local/modules/MailjetPurge/Config/config_test.xml new file mode 100644 index 00000000..425eb296 --- /dev/null +++ b/local/modules/MailjetPurge/Config/config_test.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/modules/MailjetPurge/Config/module.xml b/local/modules/MailjetPurge/Config/module.xml new file mode 100644 index 00000000..d15a0852 --- /dev/null +++ b/local/modules/MailjetPurge/Config/module.xml @@ -0,0 +1,41 @@ + + + MailjetPurge\MailjetPurge + + Automatically generated module - please update module.xml file + + + + Module généré automatiquement - éditez le fichier module.xml + + + + + en_US + fr_FR + + + + + + + + + classic + + 2.2.0 + other + diff --git a/local/modules/MailjetPurge/Config/routing.xml b/local/modules/MailjetPurge/Config/routing.xml new file mode 100644 index 00000000..607c16ef --- /dev/null +++ b/local/modules/MailjetPurge/Config/routing.xml @@ -0,0 +1,31 @@ + + + + + + + diff --git a/local/modules/MailjetPurge/Config/schema.xml b/local/modules/MailjetPurge/Config/schema.xml new file mode 100644 index 00000000..b693bca1 --- /dev/null +++ b/local/modules/MailjetPurge/Config/schema.xml @@ -0,0 +1,30 @@ + + + + + diff --git a/local/modules/MailjetPurge/I18n/en_US.php b/local/modules/MailjetPurge/I18n/en_US.php new file mode 100644 index 00000000..0b4fa142 --- /dev/null +++ b/local/modules/MailjetPurge/I18n/en_US.php @@ -0,0 +1,4 @@ + 'The displayed english string', +); diff --git a/local/modules/MailjetPurge/I18n/fr_FR.php b/local/modules/MailjetPurge/I18n/fr_FR.php new file mode 100644 index 00000000..37086245 --- /dev/null +++ b/local/modules/MailjetPurge/I18n/fr_FR.php @@ -0,0 +1,4 @@ + 'La traduction française de la chaine', +); diff --git a/local/modules/MailjetPurge/MailjetPurge.php b/local/modules/MailjetPurge/MailjetPurge.php new file mode 100644 index 00000000..8f77f6d2 --- /dev/null +++ b/local/modules/MailjetPurge/MailjetPurge.php @@ -0,0 +1,28 @@ +/local/modules/``` directory and be sure that the name of the module is MailjetPurge. +* Activate it in your thelia administration panel + +### Composer + +Add it in your main thelia composer.json file + +``` +composer require your-vendor/mailjet-purge-module:~1.0 +``` + +## Usage + +Explain here how to use your module, how to configure it, etc. + +## Hook + +If your module use one or more hook, fill this part. Explain which hooks are used. + + +## Loop + +If your module declare one or more loop, describe them here like this : + +[loop name] + +### Input arguments + +|Argument |Description | +|--- |--- | +|**arg1** | describe arg1 with an exemple. | +|**arg2** | describe arg2 with an exemple. | + +### Output arguments + +|Variable |Description | +|--- |--- | +|$VAR1 | describe $VAR1 variable | +|$VAR2 | describe $VAR2 variable | + +### Exemple + +Add a complete exemple of your loop + +## Other ? + +If you have other think to put, feel free to complete your readme as you want. diff --git a/local/modules/MailjetPurge/composer.json b/local/modules/MailjetPurge/composer.json new file mode 100644 index 00000000..de2c3557 --- /dev/null +++ b/local/modules/MailjetPurge/composer.json @@ -0,0 +1,11 @@ +{ + "name": "your-vendor/mailjet-purge-module", + "license": "LGPL-3.0+", + "type": "thelia-module", + "require": { + "thelia/installer": "~1.1" + }, + "extra": { + "installer-name": "MailjetPurge" + } +} \ No newline at end of file