Merge pull request #17831 from totten/master-no-preboot
[civicrm-core.git] / settings / Case.setting.php
CommitLineData
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
f299f7db 15 * @copyright CiviCRM LLC (c) 2004-2020
b83de994
TO
16 * $Id$
17 *
18 */
19
20/**
21 * Settings metadata file
22 */
dfe1f88a
CW
23return [
24 'civicaseRedactActivityEmail' => [
b83de994
TO
25 'group_name' => 'CiviCRM Preferences',
26 'group' => 'core',
27 'name' => 'civicaseRedactActivityEmail',
28 'type' => 'String',
29 'quick_form_type' => 'Select',
30 'html_type' => 'Select',
dfe1f88a 31 'html_attributes' => [
b83de994 32 //'class' => 'crm-select2',
dfe1f88a 33 ],
ec61a2b2 34 'default' => 'default',
b83de994 35 'add' => '4.7',
0f5a1e12 36 'title' => ts('Redact Activity Email'),
b83de994
TO
37 'is_domain' => 1,
38 'is_contact' => 0,
dfe1f88a 39 'pseudoconstant' => [
b83de994 40 'callback' => 'CRM_Case_Info::getRedactOptions',
dfe1f88a 41 ],
0f5a1e12 42 'description' => ts('Should activity emails be redacted? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
b83de994 43 'help_text' => '',
dfe1f88a
CW
44 ],
45 'civicaseAllowMultipleClients' => [
b83de994
TO
46 'group_name' => 'CiviCRM Preferences',
47 'group' => 'core',
c8fd28dc 48 'name' => 'civicaseAllowMultipleClients',
b83de994
TO
49 'type' => 'String',
50 'quick_form_type' => 'Select',
51 'html_type' => 'Select',
dfe1f88a 52 'html_attributes' => [
b83de994 53 //'class' => 'crm-select2',
dfe1f88a 54 ],
ec61a2b2 55 'default' => 'default',
b83de994 56 'add' => '4.7',
0f5a1e12 57 'title' => ts('Allow Multiple Case Clients'),
b83de994
TO
58 'is_domain' => 1,
59 'is_contact' => 0,
dfe1f88a 60 'pseudoconstant' => [
b83de994 61 'callback' => 'CRM_Case_Info::getMultiClientOptions',
dfe1f88a 62 ],
0f5a1e12 63 'description' => ts('How many clients may be associated with a given case? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
b83de994 64 'help_text' => '',
dfe1f88a
CW
65 ],
66 'civicaseNaturalActivityTypeSort' => [
b83de994
TO
67 'group_name' => 'CiviCRM Preferences',
68 'group' => 'core',
69 'name' => 'civicaseNaturalActivityTypeSort',
70 'type' => 'String',
71 'quick_form_type' => 'Select',
72 'html_type' => 'Select',
dfe1f88a 73 'html_attributes' => [
b83de994 74 //'class' => 'crm-select2',
dfe1f88a 75 ],
ec61a2b2 76 'default' => 'default',
b83de994 77 'add' => '4.7',
0f5a1e12 78 'title' => ts('Activity Type Sorting'),
b83de994
TO
79 'is_domain' => 1,
80 'is_contact' => 0,
dfe1f88a 81 'pseudoconstant' => [
b83de994 82 'callback' => 'CRM_Case_Info::getSortOptions',
dfe1f88a 83 ],
0f5a1e12 84 'description' => ts('How to sort activity-types on the "Manage Case" screen? (Set "Default" to load setting from the legacy "Settings.xml" file.)'),
b83de994 85 'help_text' => '',
dfe1f88a
CW
86 ],
87 'civicaseActivityRevisions' => [
b86c2be0
TO
88 'group_name' => 'CiviCRM Preferences',
89 'group' => 'core',
90 'name' => 'civicaseActivityRevisions',
91 'type' => 'Boolean',
92 'quick_form_type' => 'YesNo',
58e9d364 93 'default' => FALSE,
b86c2be0
TO
94 'html_type' => 'radio',
95 'add' => '4.7',
0f5a1e12 96 'title' => ts('Enable Embedded Activity Revisions'),
b86c2be0
TO
97 'is_domain' => 1,
98 'is_contact' => 0,
0f5a1e12 99 'description' => ts('Enable tracking of activity revisions embedded within the "civicrm_activity" table. Alternatively, see "Administer => System Settings => Misc => Logging".'),
b86c2be0 100 'help_text' => '',
dfe1f88a 101 ],
3e120a63
RLAR
102 'civicaseShowCaseActivities' => [
103 'group_name' => 'CiviCRM Preferences',
104 'group' => 'core',
105 'name' => 'civicaseShowCaseActivities',
106 'type' => 'Boolean',
107 'quick_form_type' => 'YesNo',
108 'default' => FALSE,
109 'html_type' => 'radio',
110 'add' => '5.24',
111 'title' => ts('Include case activities in general activity views.'),
112 'is_domain' => 1,
113 'is_contact' => 0,
114 '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.'),
115 'help_text' => '',
116 ],
dfe1f88a 117];