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