Skip to content

Commit

Permalink
CiviCampaign - Add labels to field metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Nov 16, 2022
1 parent be3b309 commit e778bc9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CRM/Campaign/DAO/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Campaign/Campaign.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:99376d5b37f09370bab36f3a3cd37e0a)
* (GenCodeChecksum:0db877ff95e04216a2c4553e5e1f0594)
*/

/**
Expand Down Expand Up @@ -276,6 +276,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Number',
'label' => ts("ID"),
],
'readonly' => TRUE,
'add' => '3.3',
Expand All @@ -297,6 +298,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Text',
'label' => ts("Name"),
],
'add' => '3.3',
],
Expand All @@ -316,6 +318,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Text',
'label' => ts("Title"),
],
'add' => '3.3',
],
Expand All @@ -333,6 +336,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'TextArea',
'label' => ts("Description"),
],
'add' => '3.3',
],
Expand All @@ -352,6 +356,7 @@ public static function &fields() {
'html' => [
'type' => 'Select Date',
'formatType' => 'activityDateTime',
'label' => ts("Start Date"),
],
'add' => '3.3',
],
Expand All @@ -371,6 +376,7 @@ public static function &fields() {
'html' => [
'type' => 'Select Date',
'formatType' => 'activityDateTime',
'label' => ts("End Date"),
],
'add' => '3.3',
],
Expand All @@ -389,6 +395,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Select',
'label' => ts("Type"),
],
'pseudoconstant' => [
'optionGroupName' => 'campaign_type',
Expand All @@ -411,6 +418,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Select',
'label' => ts("Status"),
],
'pseudoconstant' => [
'optionGroupName' => 'campaign_status',
Expand All @@ -436,6 +444,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Text',
'label' => ts("External ID"),
],
'add' => '3.3',
],
Expand Down
10 changes: 10 additions & 0 deletions xml/schema/Campaign/Campaign.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<import>true</import>
<html>
<type>Number</type>
<label>ID</label>
</html>
<add>3.3</add>
</field>
Expand All @@ -41,6 +42,7 @@
<import>true</import>
<html>
<type>Text</type>
<label>Name</label>
</html>
<add>3.3</add>
</field>
Expand All @@ -58,6 +60,7 @@
<import>true</import>
<html>
<type>Text</type>
<label>Title</label>
</html>
<add>3.3</add>
</field>
Expand All @@ -70,6 +73,7 @@
<type>TextArea</type>
<rows>8</rows>
<cols>60</cols>
<label>Description</label>
</html>
<comment>Full description of Campaign.</comment>
<add>3.3</add>
Expand All @@ -83,6 +87,7 @@
<comment>Date and time that Campaign starts.</comment>
<import>true</import>
<html>
<label>Start Date</label>
<type>Select Date</type>
<formatType>activityDateTime</formatType>
</html>
Expand All @@ -97,6 +102,7 @@
<comment>Date and time that Campaign ends.</comment>
<import>true</import>
<html>
<label>End Date</label>
<type>Select Date</type>
<formatType>activityDateTime</formatType>
</html>
Expand All @@ -114,6 +120,7 @@
<optionGroupName>campaign_type</optionGroupName>
</pseudoconstant>
<html>
<label>Type</label>
<type>Select</type>
</html>
<add>3.3</add>
Expand All @@ -135,6 +142,7 @@
<optionGroupName>campaign_status</optionGroupName>
</pseudoconstant>
<html>
<label>Status</label>
<type>Select</type>
</html>
<add>3.3</add>
Expand All @@ -156,6 +164,7 @@
<import>true</import>
<add>3.3</add>
<html>
<label>External ID</label>
<type>Text</type>
</html>
</field>
Expand Down Expand Up @@ -196,6 +205,7 @@
<comment>Is this Campaign enabled or disabled/cancelled?</comment>
<add>3.3</add>
<html>
<label>Enabled</label>
<type>CheckBox</type>
<label>Enabled</label>
</html>
Expand Down

0 comments on commit e778bc9

Please sign in to comment.