Merge pull request #7646 from joshgowans/patch-1
[civicrm-core.git] / settings / Core.setting.php
index 1484bc778a512fb9426643d9102a787c5656b64c..5b5a0ca24f5103645fc772f0060d3613f710857c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
@@ -62,7 +62,7 @@ return array(
     'pseudoconstant' => array(
       'optionGroupName' => 'contact_edit_options',
     ),
-    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 1',
+    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 111\ 112\ 114\ 115\ 116\ 117\ 1',
     'add' => '4.1',
     'title' => 'Editing Contacts',
     'is_domain' => 1,
@@ -78,7 +78,7 @@ return array(
     'pseudoconstant' => array(
       'optionGroupName' => 'advanced_search_options',
     ),
-    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
+    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
     'add' => '4.1',
     'title' => 'Contact Search',
     'is_domain' => 1,
@@ -95,7 +95,7 @@ return array(
     'pseudoconstant' => array(
       'optionGroupName' => 'user_dashboard_options',
     ),
-    'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 19\ 1',
+    'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 1',
     'add' => '4.1',
     'title' => 'Contact Dashboard',
     'is_domain' => 1,
@@ -112,7 +112,7 @@ return array(
     'pseudoconstant' => array(
       'optionGroupName' => 'address_options',
     ),
-    'default' => '\ 11\ 12\ 14\ 15\ 18\ 19\ 110\ 111\ 1',
+    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 18\ 19\ 110\ 111\ 1',
     'add' => '4.1',
     'title' => 'Addressing Options',
     'is_domain' => 1,
@@ -181,8 +181,8 @@ return array(
     'group' => 'core',
     'name' => 'editor_id',
     'type' => 'String',
-    'html_type' => 'Text',
-    'default' => NULL,
+    'html_type' => 'Select',
+    'default' => 'CKEditor',
     'add' => '4.1',
     'title' => 'Wysiwig Editor',
     'is_domain' => 1,
@@ -196,7 +196,7 @@ return array(
     'name' => 'contact_ajax_check_similar',
     'type' => 'String',
     'html_type' => 'Text',
-    'default' => NULL,
+    'default' => '1',
     'add' => '4.1',
     'title' => 'Ajax Check Similar',
     'is_domain' => 1,
@@ -224,7 +224,7 @@ return array(
     'name' => 'activity_assignee_notification',
     'type' => 'String',
     'html_type' => 'Text',
-    'default' => NULL,
+    'default' => '1',
     'add' => '4.1',
     'title' => 'Notify Activity Assignees',
     'is_domain' => 1,
@@ -238,7 +238,7 @@ return array(
     'name' => 'activity_assignee_notification_ics',
     'type' => 'String',
     'html_type' => 'Text',
-    'default' => NULL,
+    'default' => '0',
     'add' => '4.3',
     'title' => 'Include ICal Invite to Activity Assignees',
     'is_domain' => 1,
@@ -251,16 +251,16 @@ return array(
     'group' => 'core',
     'name' => 'contact_autocomplete_options',
     'type' => 'String',
-    'html_type' => 'checkboxes',
+    'quick_form_type' => 'CheckBox',
     'pseudoconstant' => array(
-      'optionGroupName' => 'contact_autocomplete_options',
+      'callback' => 'CRM_Admin_Form_Setting_Search::getContactAutocompleteOptions',
     ),
-    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 1',
+    'default' => '\ 11\ 12\ 1',
     'add' => '4.1',
-    'title' => 'Contact Reference Autocomplete Options',
+    'title' => 'Autocomplete Contact Search',
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => NULL,
+    'description' => "Selected fields will be displayed in back-office autocomplete dropdown search results (Quick Search, etc.). Contact Name is always included.",
     'help_text' => NULL,
   ),
   'contact_reference_options' => array(
@@ -268,24 +268,52 @@ return array(
     'group' => 'core',
     'name' => 'contact_reference_options',
     'type' => 'String',
-    'html_type' => 'checkboxes',
+    'quick_form_type' => 'CheckBox',
     'pseudoconstant' => array(
-      'optionGroupName' => 'contact_reference_options',
+      'callback' => 'CRM_Admin_Form_Setting_Search::getContactReferenceOptions',
     ),
-    'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 1',
+    'default' => '\ 11\ 12\ 1',
     'add' => '4.1',
     'title' => 'Contact Reference Options',
     'is_domain' => 1,
     'is_contact' => 0,
+    'description' => "Selected fields will be displayed in autocomplete dropdown search results for 'Contact Reference' custom fields. Contact Name is always included. NOTE: You must assign 'access contact reference fields' permission to the anonymous role if you want to use custom contact reference fields in profiles on public pages. For most situations, you should use the 'Limit List to Group' setting when configuring a contact reference field which will be used in public forms to prevent exposing your entire contact list.",
+    'help_text' => NULL,
+  ),
+  'contact_smart_group_display' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'contact_smart_group_display',
+    'type' => 'String',
+    'html_type' => 'radio',
+    'default' => '1',
+    'add' => '4.7',
+    'title' => ts('Viewing Smart Groups'),
+    'is_domain' => 1,
+    'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'installed' => array(
+    'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'installed',
+    'type' => 'Boolean',
+    'quick_form_type' => 'YesNo',
+    'default' => FALSE,
+    'add' => '4.7',
+    'title' => 'System Installed',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'A flag indicating whether this system has run a post-installation routine',
+    'help_text' => NULL,
+  ),
   'max_attachments' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'max_attachments',
     'legacy_key' => 'maxAttachments',
-    'prefetch' => 0,
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
@@ -305,10 +333,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'maxFileSize',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
@@ -352,78 +376,6 @@ return array(
     'description' => 'Allow Permanent Delete for contacts who are linked to live financial transactions',
     'help_text' => NULL,
   ),
-  'versionAlert' => array(
-    'group_name' => 'CiviCRM Preferences',
-    'group' => 'core',
-    'name' => 'versionAlert',
-    'type' => 'Integer',
-    'quick_form_type' => 'Element',
-    'html_type' => 'select',
-    'option_values' => array(
-      ts('Disabled'),
-      ts('Display In Page Footer'),
-      ts('Display As Popup Alert'),
-      ts('Page Footer + Popup Alert'),
-    ),
-    'default' => 1,
-    'add' => '4.3',
-    'title' => 'New Version Alerts',
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'description' => "",
-    'help_text' => NULL,
-  ),
-  'securityUpdateAlert' => array(
-    'group_name' => 'CiviCRM Preferences',
-    'group' => 'core',
-    'name' => 'securityUpdateAlert',
-    'type' => 'Integer',
-    'quick_form_type' => 'Element',
-    'html_type' => 'select',
-    'option_values' => array(
-      ts('Disabled'),
-      ts('Display In Page Footer'),
-      ts('Display As Popup Alert'),
-      ts('Page Footer + Popup Alert'),
-    ),
-    'default' => 3,
-    'add' => '4.6',
-    'title' => 'Security Update Alerts',
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'description' => "",
-    'help_text' => NULL,
-  ),
-  'versionCheck' => array(
-    'group_name' => 'CiviCRM Preferences',
-    'group' => 'core',
-    'name' => 'versionCheck',
-    'type' => 'Boolean',
-    'quick_form_type' => 'YesNo',
-    'default' => 1,
-    'add' => '4.3',
-    'title' => 'Automatically Check for Updates',
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'description' => "",
-    'help_text' => NULL,
-  ),
-  'versionCheckIgnoreDate' => array(
-    'group_name' => 'CiviCRM Preferences',
-    'group' => 'core',
-    'name' => 'versionCheckIgnoreDate',
-    'type' => 'String',
-    'quick_form_type' => 'Element',
-    'html_type' => 'text',
-    'html_attributes' => array('placeholder' => 'YYYY-MM-DD'),
-    'default' => '',
-    'add' => '4.6',
-    'title' => 'Ignore Updates Prior to',
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'description' => "",
-    'help_text' => NULL,
-  ),
   'securityAlert' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -432,23 +384,19 @@ return array(
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.4',
-    'title' => 'Security Audits',
+    'title' => 'Status Alerts',
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => "If enabled, CiviCRM will automatically run checks for significant mis-configurations such as ineffective file protections.",
+    'description' => "If enabled, CiviCRM will display pop-up notifications (no more than once per day) for security and misconfiguration issues identified in the system check.",
     'help_text' => NULL,
   ),
   'doNotAttachPDFReceipt' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'doNotAttachPDFReceipt',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config object. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Boolean',
     'quick_form_type' => 'YesNo',
-    'default' => 1,
+    'default' => 0,
     'add' => '4.3',
     'title' => 'Attach PDF copy to receipts',
     'is_domain' => 1,
@@ -460,10 +408,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'wkhtmltopdfPath',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -479,14 +423,29 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'recaptchaOptions' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'recaptchaOptions',
+    'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_attributes' => array(
+      'size' => 64,
+      'maxlength' => 64,
+    ),
+    'html_type' => 'Text',
+    'default' => NULL,
+    'add' => '4.3',
+    'title' => 'Recaptcha Options',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'You can specify the reCAPTCHA theme options as comma separated data.(eg: theme:\'blackglass\', lang : \'fr\' ). Check the available options at <a href="https://developers.google.com/recaptcha/docs/display#config">Customizing the Look and Feel of reCAPTCHA</a>.',
+    'help_text' => NULL,
+  ),
   'recaptchaPublicKey' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recaptchaPublicKey',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -496,7 +455,7 @@ return array(
     'html_type' => 'Text',
     'default' => NULL,
     'add' => '4.3',
-    'title' => 'Recaptcha Public Key',
+    'title' => 'Recaptcha Site Key',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
@@ -506,10 +465,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recaptchaPrivateKey',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -519,7 +474,7 @@ return array(
     'html_type' => 'Text',
     'default' => NULL,
     'add' => '4.3',
-    'title' => 'Recaptcha Private Key',
+    'title' => 'Recaptcha Secret Key',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
@@ -529,10 +484,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'dashboardCacheTimeout',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -548,12 +499,10 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
-  'checksumTimeout' => array(
+  'checksum_timeout' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
-    'name' => 'checksumTimeout',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
+    'name' => 'checksum_timeout',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -573,7 +522,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'blogUrl',
-    'prefetch' => 0,
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -593,7 +541,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'communityMessagesUrl',
-    'prefetch' => 0,
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
@@ -609,24 +556,33 @@ return array(
     'description' => 'Service providing CiviCRM community messages',
     'help_text' => 'Use "*default*" for the system default or override with a custom URL',
   ),
-  'resCacheCode' => array(
+  'gettingStartedUrl' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
-    'name' => 'resCacheCode',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
-    'config_only' => 1,
-    //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
+    'name' => 'gettingStartedUrl',
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_attributes' => array(
-      'size' => 16,
-      'maxlength' => 16,
+      'size' => 64,
+      'maxlength' => 128,
     ),
     'html_type' => 'Text',
+    'default' => '*default*',
+    'add' => '4.3',
+    'title' => 'Getting Started URL',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'Service providing the Getting Started data',
+    'help_text' => 'Use "*default*" for the system default or override with a custom URL',
+  ),
+  'resCacheCode' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'resCacheCode',
+    'type' => 'String',
     'default' => NULL,
     'add' => '4.3',
-    'title' => 'Resource Cache Code',
+    'title' => 'resCacheCode',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => 'Code appended to resource URLs (JS/CSS) to coerce HTTP caching',
@@ -667,8 +623,6 @@ return array(
     'type' => 'String',
     'html_type' => 'text',
     'quick_form_type' => 'Element',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
     'default' => '',
     'add' => '4.3',
     'title' => 'WordPress Base Page',
@@ -681,8 +635,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'secondDegRelPermissions',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
     'type' => 'Boolean',
     'quick_form_type' => 'YesNo',
     'default' => 0,
@@ -694,6 +646,7 @@ return array(
     'help_text' => NULL,
   ),
   'enable_components' => array(
+    'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'enable_components',
@@ -705,7 +658,7 @@ return array(
       'style' => 'width:150px',
       'class' => 'advmultiselect',
     ),
-    'default' => array('CiviEvent', 'CiviContribute', 'CiviMember', 'CiviMail', 'CiviReport', 'CiviPledge'),
+    'default' => NULL,
     'add' => '4.4',
     'title' => 'Enable Components',
     'is_domain' => '1',
@@ -736,8 +689,6 @@ return array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'empoweredBy',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
     'type' => 'Boolean',
     'quick_form_type' => 'YesNo',
     'default' => 1,
@@ -748,6 +699,44 @@ return array(
     'description' => 'When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.',
     'help_text' => NULL,
   ),
+  'logging' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'logging',
+    'type' => 'Boolean',
+    'quick_form_type' => 'YesNo',
+    'html_type' => '',
+    'default' => '0',
+    'title' => 'Logging',
+    'description' => 'If enabled, all actions will be logged with a complete record of changes.',
+    'validate_callback' => 'CRM_Logging_Schema::checkLoggingSupport',
+    'on_change' => array(
+      'CRM_Logging_Schema::onToggle',
+    ),
+  ),
+  'userFrameworkUsersTableName' => array(
+    'add' => '4.7',
+    'help_text' => NULL,
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'userFrameworkUsersTableName',
+    'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => array(
+      'size' => '32',
+      'maxlength' => '64',
+    ),
+    'default' => NULL,
+    'title' => 'Drupal Users Table Name',
+    'description' => '',
+  ),
   'wpLoadPhp' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -755,8 +744,6 @@ return array(
     'type' => 'String',
     'html_type' => 'text',
     'quick_form_type' => 'Element',
-    'prefetch' => 1,
-    // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
     'default' => '',
     'add' => '4.6',
     'title' => 'WordPress Path to wp-load.php',
@@ -778,4 +765,17 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'systemStatusCheckResult' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'systemStatusCheckResult',
+    'type' => 'Integer',
+    'default' => 0,
+    'add' => '4.7',
+    'title' => 'systemStatusCheckResult',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => NULL,
+    'help_text' => NULL,
+  ),
 );