From d6746941be40d0cb5dd17c3c9ed93b26a7c71981 Mon Sep 17 00:00:00 2001 From: Civiware Solutions Date: Fri, 21 Dec 2018 15:39:28 +0000 Subject: [PATCH] install code for 'Used for' option group --- softcreditcustomfields.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/softcreditcustomfields.php b/softcreditcustomfields.php index ee0b0e3..3e7742e 100644 --- a/softcreditcustomfields.php +++ b/softcreditcustomfields.php @@ -85,6 +85,21 @@ function softcreditcustomfields_civicrm_upgrade($op, CRM_Queue_Queue $queue = NU */ function softcreditcustomfields_civicrm_managed(&$entities) { _softcreditcustomfields_civix_civicrm_managed($entities); + $entities[] = [ + 'module' => 'com.megaphonetech.softcreditcustomfields', + 'name' => 'softCreditCustomfield', + 'update' => 'never', + 'entity' => 'OptionValue', + 'params' => [ + 'label' => ts('Contribution Soft'), + 'name' => 'civicrm_contribution_soft', + 'value' => 'ContributionSoft', + 'option_group_id' => 'cg_extend_objects', + 'options' => ['match' => ['option_group_id', 'name']], + 'is_active' => 1, + 'version' => 3, + ], + ]; } /**