Merge pull request #18794 from eileenmcnaughton/need_less
[civicrm-core.git] / settings / Case.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * Settings metadata file
20 */
21 return [
22 'civicaseRedactActivityEmail' => [
23 'group_name' => 'CiviCRM Preferences',
24 'group' => 'core',
25 'name' => 'civicaseRedactActivityEmail',
26 'type' => 'String',
27 'quick_form_type' => 'Select',
28 'html_type' => 'Select',
29 'html_attributes' => [
30 //'class' => 'crm-select2',
31 ],
32 'default' => 'default',
33 'add' => '4.7',
34 'title' => ts('Redact Activity Email'),
35 'is_domain' => 1,
36 'is_contact' => 0,
37 'pseudoconstant' => [
38 'callback' => 'CRM_Case_Info::getRedactOptions',
39 ],
40 'description' => ts('Should activity emails be redacted? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
41 'help_text' => '',
42 ],
43 'civicaseAllowMultipleClients' => [
44 'group_name' => 'CiviCRM Preferences',
45 'group' => 'core',
46 'name' => 'civicaseAllowMultipleClients',
47 'type' => 'String',
48 'quick_form_type' => 'Select',
49 'html_type' => 'Select',
50 'html_attributes' => [
51 //'class' => 'crm-select2',
52 ],
53 'default' => 'default',
54 'add' => '4.7',
55 'title' => ts('Allow Multiple Case Clients'),
56 'is_domain' => 1,
57 'is_contact' => 0,
58 'pseudoconstant' => [
59 'callback' => 'CRM_Case_Info::getMultiClientOptions',
60 ],
61 'description' => ts('How many clients may be associated with a given case? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
62 'help_text' => '',
63 ],
64 'civicaseNaturalActivityTypeSort' => [
65 'group_name' => 'CiviCRM Preferences',
66 'group' => 'core',
67 'name' => 'civicaseNaturalActivityTypeSort',
68 'type' => 'String',
69 'quick_form_type' => 'Select',
70 'html_type' => 'Select',
71 'html_attributes' => [
72 //'class' => 'crm-select2',
73 ],
74 'default' => 'default',
75 'add' => '4.7',
76 'title' => ts('Activity Type Sorting'),
77 'is_domain' => 1,
78 'is_contact' => 0,
79 'pseudoconstant' => [
80 'callback' => 'CRM_Case_Info::getSortOptions',
81 ],
82 'description' => ts('How to sort activity-types on the "Manage Case" screen? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
83 'help_text' => '',
84 ],
85 'civicaseActivityRevisions' => [
86 'group_name' => 'CiviCRM Preferences',
87 'group' => 'core',
88 'name' => 'civicaseActivityRevisions',
89 'type' => 'Boolean',
90 'quick_form_type' => 'YesNo',
91 'default' => FALSE,
92 'html_type' => 'radio',
93 'add' => '4.7',
94 'title' => ts('Enable Embedded Activity Revisions'),
95 'is_domain' => 1,
96 'is_contact' => 0,
97 'description' => ts('Enable tracking of activity revisions embedded within the "civicrm_activity" table. Alternatively, see "Administer => System Settings => Misc => Logging".'),
98 'help_text' => '',
99 ],
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 ],
115 ];