This commit is contained in:
Rich Lott / Artful Robot 2024-02-28 13:00:56 +00:00
parent 3b393be4f4
commit 0b96026602
17 changed files with 458 additions and 38 deletions

View file

@ -0,0 +1,27 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'OptionValue_Changed_Contact_Category',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'option_group_id.name' => 'activity_type',
'label' => E::ts('Changed Contact Category'),
'value' => '57',
'name' => 'changed_contact_category',
'weight' => 57,
'icon' => 'fa-tags',
],
'match' => [
'option_group_id',
'name',
'value',
],
],
],
];

50
managed/options.mgd.php Normal file
View file

@ -0,0 +1,50 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'OptionGroup_contact_categories',
'entity' => 'OptionGroup',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'contact_categories',
'title' => E::ts('Contact Categories'),
'data_type' => 'Integer',
'is_reserved' => FALSE,
'is_active' => TRUE,
'option_value_fields' => [
'name',
'label',
'description',
],
],
'match' => [
'name',
],
],
],
[
'name' => 'OptionGroup_contact_categories_OptionValue_Default',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'option_group_id.name' => 'contact_categories',
'label' => E::ts('Default'),
'is_active' => TRUE,
'value' => '0',
'name' => 'default',
],
'match' => [
'option_group_id',
'name',
'value',
],
],
],
];