diff --git a/CRM/Moregreetings/Upgrader.php b/CRM/Moregreetings/Upgrader.php
index 6d478af..56591b5 100644
--- a/CRM/Moregreetings/Upgrader.php
+++ b/CRM/Moregreetings/Upgrader.php
@@ -43,4 +43,21 @@ public function upgrade_5001() {
return TRUE;
}
+
+ /**
+ * Make sure users get a warning about the switch to APIv4
+ *
+ * @return bool TRUE on success
+ * @throws Exception
+ */
+ public function upgrade_5002() {
+ CRM_Core_Session::setStatus(
+ E::ts('MoreGreetings has switched to APIv4, which means that some tokens might not work any more.') . '
' .
+ E::ts('An example would be the defunct $individual_prefix
token, which can be substituted by the prefix_id:label
') . '
'.
+ E::ts('Make sure you test your greeting templates well before you continue using MoreGreetings.'),
+ E::ts("Warning"),
+ 'alert', ['expires' => 0]);
+ return TRUE;
+ }
+
}
diff --git a/info.xml b/info.xml
index f61f49a..a7e7fbc 100644
--- a/info.xml
+++ b/info.xml
@@ -14,9 +14,9 @@
https://github.com/systopia/de.systopia.moregreetings/issues
http://www.gnu.org/licenses/agpl-3.0.html
- 2024-09-19
- 1.2.0
- stable
+
+ 1.3-dev
+ dev
5.38