install code for 'Used for' option group

This commit is contained in:
CiviWare Solutions 2018-12-21 15:39:28 +00:00
parent 1037e46619
commit d6746941be

View File

@ -85,6 +85,21 @@ function softcreditcustomfields_civicrm_upgrade($op, CRM_Queue_Queue $queue = NU
*/ */
function softcreditcustomfields_civicrm_managed(&$entities) { function softcreditcustomfields_civicrm_managed(&$entities) {
_softcreditcustomfields_civix_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,
],
];
} }
/** /**