Add path metadata to CustomField and CustomValue entities
authorColeman Watts <coleman@civicrm.org>
Wed, 22 Dec 2021 00:58:59 +0000 (19:58 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 22 Dec 2021 00:58:59 +0000 (19:58 -0500)
CRM/Core/DAO/CustomField.php
CRM/Core/DAO/CustomGroup.php
xml/schema/Core/CustomField.xml
xml/schema/Core/CustomGroup.xml

index 758beb4cf98b0b7f795284ead6d09d96e08c940e..0e2cb68355b8575e0a28431481362d06e72e87bb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b53a928be3c87ec7da4f88da3ec825b8)
+ * (GenCodeChecksum:c093cac865bba7796c2c7deda6579f40)
  */
 
 /**
@@ -37,6 +37,19 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
    */
   public static $_log = TRUE;
 
+  /**
+   * Paths for accessing this entity in the UI.
+   *
+   * @var string[]
+   */
+  protected static $_paths = [
+    'add' => 'civicrm/admin/custom/group/field/add?reset=1&action=add&gid=[custom_group_id]',
+    'update' => 'civicrm/admin/custom/group/field/update?action=update&reset=1&id=[id]&gid=[custom_group_id]',
+    'preview' => 'civicrm/admin/custom/group/field?action=preview&reset=1&id=[id]&gid=[custom_group_id]',
+    'delete' => 'civicrm/admin/custom/group/field?action=delete&reset=1&id=[id]&gid=[custom_group_id]',
+    'move' => 'civicrm/admin/custom/group/field/move?reset=1&fid=[id]',
+  ];
+
   /**
    * Unique Custom Field ID
    *
index 02989e424adba16454db38fc3a12318c9122bf14..a57c659aae3a4812e92362941a06f6d850c60a34 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:27a1b80ba9d2696e97dd1df33468caff)
+ * (GenCodeChecksum:57ebfb396e58116709f9d883a46edfa7)
  */
 
 /**
@@ -37,6 +37,18 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
    */
   public static $_log = TRUE;
 
+  /**
+   * Paths for accessing this entity in the UI.
+   *
+   * @var string[]
+   */
+  protected static $_paths = [
+    'add' => 'civicrm/admin/custom/group?action=add&reset=1',
+    'update' => 'civicrm/admin/custom/group?action=update&reset=1&id=[id]',
+    'preview' => 'civicrm/admin/custom/group?action=preview&reset=1&id=[id]',
+    'delete' => 'civicrm/admin/custom/group?action=delete&reset=1&id=[id]',
+  ];
+
   /**
    * Unique Custom Group ID
    *
index 71e18628508c162aa7202bdd941350858651ad3a..8fb1c82c10b0115454bff015afd9498d0de4ca4a 100644 (file)
@@ -8,6 +8,13 @@
   <add>1.1</add>
   <log>true</log>
   <labelField>label</labelField>
+  <paths>
+    <add>civicrm/admin/custom/group/field/add?reset=1&amp;action=add&amp;gid=[custom_group_id]</add>
+    <update>civicrm/admin/custom/group/field/update?action=update&amp;reset=1&amp;id=[id]&amp;gid=[custom_group_id]</update>
+    <preview>civicrm/admin/custom/group/field?action=preview&amp;reset=1&amp;id=[id]&amp;gid=[custom_group_id]</preview>
+    <delete>civicrm/admin/custom/group/field?action=delete&amp;reset=1&amp;id=[id]&amp;gid=[custom_group_id]</delete>
+    <move>civicrm/admin/custom/group/field/move?reset=1&amp;fid=[id]</move>
+  </paths>
   <field>
     <name>id</name>
     <type>int unsigned</type>
index d65d9c1ee85ffc8c819b0ec4227246529587ed1b..853a106e3263e247bbf5a71a530ccbc4588055a1 100644 (file)
   <log>true</log>
   <title>Custom Field Group</title>
   <labelField>title</labelField>
+  <paths>
+    <add>civicrm/admin/custom/group?action=add&amp;reset=1</add>
+    <update>civicrm/admin/custom/group?action=update&amp;reset=1&amp;id=[id]</update>
+    <preview>civicrm/admin/custom/group?action=preview&amp;reset=1&amp;id=[id]</preview>
+    <delete>civicrm/admin/custom/group?action=delete&amp;reset=1&amp;id=[id]</delete>
+  </paths>
   <field>
     <name>id</name>
     <type>int unsigned</type>