Commit | Line | Data |
---|---|---|
b83de994 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
6b7eb9df | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
b83de994 | 5 | | | |
6b7eb9df TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
b83de994 TO |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
11 | ||
12 | /** | |
13 | * | |
14 | * @package CRM | |
f452d72c | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
b83de994 TO |
16 | */ |
17 | ||
18 | /** | |
19 | * Settings metadata file | |
20 | */ | |
dfe1f88a CW |
21 | return [ |
22 | 'civicaseRedactActivityEmail' => [ | |
b83de994 TO |
23 | 'group_name' => 'CiviCRM Preferences', |
24 | 'group' => 'core', | |
25 | 'name' => 'civicaseRedactActivityEmail', | |
26 | 'type' => 'String', | |
27 | 'quick_form_type' => 'Select', | |
28 | 'html_type' => 'Select', | |
dfe1f88a | 29 | 'html_attributes' => [ |
b83de994 | 30 | //'class' => 'crm-select2', |
dfe1f88a | 31 | ], |
ec61a2b2 | 32 | 'default' => 'default', |
b83de994 | 33 | 'add' => '4.7', |
0f5a1e12 | 34 | 'title' => ts('Redact Activity Email'), |
b83de994 TO |
35 | 'is_domain' => 1, |
36 | 'is_contact' => 0, | |
dfe1f88a | 37 | 'pseudoconstant' => [ |
b83de994 | 38 | 'callback' => 'CRM_Case_Info::getRedactOptions', |
dfe1f88a | 39 | ], |
0f5a1e12 | 40 | 'description' => ts('Should activity emails be redacted? (Set "Default" to load setting from the legacy "Settings.xml" file.)'), |
b83de994 | 41 | 'help_text' => '', |
dfe1f88a CW |
42 | ], |
43 | 'civicaseAllowMultipleClients' => [ | |
b83de994 TO |
44 | 'group_name' => 'CiviCRM Preferences', |
45 | 'group' => 'core', | |
c8fd28dc | 46 | 'name' => 'civicaseAllowMultipleClients', |
b83de994 TO |
47 | 'type' => 'String', |
48 | 'quick_form_type' => 'Select', | |
49 | 'html_type' => 'Select', | |
dfe1f88a | 50 | 'html_attributes' => [ |
b83de994 | 51 | //'class' => 'crm-select2', |
dfe1f88a | 52 | ], |
ec61a2b2 | 53 | 'default' => 'default', |
b83de994 | 54 | 'add' => '4.7', |
0f5a1e12 | 55 | 'title' => ts('Allow Multiple Case Clients'), |
b83de994 TO |
56 | 'is_domain' => 1, |
57 | 'is_contact' => 0, | |
dfe1f88a | 58 | 'pseudoconstant' => [ |
b83de994 | 59 | 'callback' => 'CRM_Case_Info::getMultiClientOptions', |
dfe1f88a | 60 | ], |
0f5a1e12 | 61 | 'description' => ts('How many clients may be associated with a given case? (Set "Default" to load setting from the legacy "Settings.xml" file.)'), |
b83de994 | 62 | 'help_text' => '', |
dfe1f88a CW |
63 | ], |
64 | 'civicaseNaturalActivityTypeSort' => [ | |
b83de994 TO |
65 | 'group_name' => 'CiviCRM Preferences', |
66 | 'group' => 'core', | |
67 | 'name' => 'civicaseNaturalActivityTypeSort', | |
68 | 'type' => 'String', | |
69 | 'quick_form_type' => 'Select', | |
70 | 'html_type' => 'Select', | |
dfe1f88a | 71 | 'html_attributes' => [ |
b83de994 | 72 | //'class' => 'crm-select2', |
dfe1f88a | 73 | ], |
ec61a2b2 | 74 | 'default' => 'default', |
b83de994 | 75 | 'add' => '4.7', |
0f5a1e12 | 76 | 'title' => ts('Activity Type Sorting'), |
b83de994 TO |
77 | 'is_domain' => 1, |
78 | 'is_contact' => 0, | |
dfe1f88a | 79 | 'pseudoconstant' => [ |
b83de994 | 80 | 'callback' => 'CRM_Case_Info::getSortOptions', |
dfe1f88a | 81 | ], |
0f5a1e12 | 82 | 'description' => ts('How to sort activity-types on the "Manage Case" screen? (Set "Default" to load setting from the legacy "Settings.xml" file.)'), |
b83de994 | 83 | 'help_text' => '', |
dfe1f88a CW |
84 | ], |
85 | 'civicaseActivityRevisions' => [ | |
b86c2be0 TO |
86 | 'group_name' => 'CiviCRM Preferences', |
87 | 'group' => 'core', | |
88 | 'name' => 'civicaseActivityRevisions', | |
89 | 'type' => 'Boolean', | |
90 | 'quick_form_type' => 'YesNo', | |
58e9d364 | 91 | 'default' => FALSE, |
b86c2be0 TO |
92 | 'html_type' => 'radio', |
93 | 'add' => '4.7', | |
2136cc90 | 94 | 'title' => ts('Enable deprecated Embedded Activity Revisions'), |
b86c2be0 TO |
95 | 'is_domain' => 1, |
96 | 'is_contact' => 0, | |
2136cc90 | 97 | 'description' => ts('Enable tracking of activity revisions embedded within the "civicrm_activity" table. This should not be enabled on new installs and will be unsupported in the future. You should enable "Administer => System Settings => Misc => Logging" instead.'), |
b86c2be0 | 98 | 'help_text' => '', |
dfe1f88a | 99 | ], |
3e120a63 RLAR |
100 | 'civicaseShowCaseActivities' => [ |
101 | 'group_name' => 'CiviCRM Preferences', | |
102 | 'group' => 'core', | |
103 | 'name' => 'civicaseShowCaseActivities', | |
104 | 'type' => 'Boolean', | |
105 | 'quick_form_type' => 'YesNo', | |
106 | 'default' => FALSE, | |
107 | 'html_type' => 'radio', | |
108 | 'add' => '5.24', | |
109 | 'title' => ts('Include case activities in general activity views.'), | |
110 | 'is_domain' => 1, | |
111 | 'is_contact' => 0, | |
112 | 'description' => ts('e.g. the Contact form\'s Activity tab listing. Without this ticked, activities that belong to a case are hidden (default behavior). Warning: enabling this option means that all case activities relating to a contact will be listed which could result in users without "access all cases and activities" permission being able to see see the summarized details (date, subject, assignees, status etc.). Such users will still be prevented from managing the case and viewing/editing the activity.'), | |
113 | 'help_text' => '', | |
114 | ], | |
dfe1f88a | 115 | ]; |