Merge pull request #8914 from totten/master-soap
[civicrm-core.git] / settings / Core.setting.php
index ce2c88fa9b58a4d7bb9ca45a3180343938f15830..28d897e7e5990585821b10cf9e6ce9f6bf51a9de 100644 (file)
@@ -32,7 +32,8 @@
  * $Id$
  *
  */
-/*
+
+/**
  * Settings metadata file
  */
 return array(
@@ -176,6 +177,21 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'remote_profile_submissions' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'remote_profile_submissions',
+    'type' => 'Boolean',
+    'quick_form_type' => 'YesNo',
+    'default' => FALSE,
+    'html_type' => 'radio',
+    'add' => '4.7',
+    'title' => 'Accept profile submissions from external sites',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'If enabled, CiviCRM will permit submissions from external sites to profiles. This is disabled by default to limit abuse.',
+    'help_text' => NULL,
+  ),
   'editor_id' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -294,6 +310,23 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'smart_group_cache_refresh_mode' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'smart_group_cache_refresh_mode',
+    'type' => 'String',
+    'html_type' => 'radio',
+    'default' => 'opportunistic',
+    'add' => '4.7',
+    'title' => 'Smart Group Refresh Mode',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Contact_BAO_GroupContactCache::getModes',
+    ),
+    'description' => 'Should the smart groups be by cron jobs or user actions',
+    'help_text' => 'In "Opportunistic Flush" mode, caches are flushed in response to user actions; this mode is broadly compatible but may add latency during form-submissions. In "Cron Flush" mode, you should schedule a cron job to flush caches; this can improve latency on form-submissions but requires more setup.',
+  ),
   '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',
@@ -480,25 +513,6 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
-  'dashboardCacheTimeout' => array(
-    'group_name' => 'CiviCRM Preferences',
-    'group' => 'core',
-    'name' => 'dashboardCacheTimeout',
-    'type' => 'Integer',
-    'quick_form_type' => 'Element',
-    'html_attributes' => array(
-      'size' => 3,
-      'maxlength' => 5,
-    ),
-    'html_type' => 'Text',
-    'default' => NULL,
-    'add' => '4.3',
-    'title' => 'Dashboard cache timeout',
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'description' => NULL,
-    'help_text' => NULL,
-  ),
   'checksum_timeout' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -580,6 +594,8 @@ return array(
     'group' => 'core',
     'name' => 'resCacheCode',
     'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => NULL,
     'add' => '4.3',
     'title' => 'resCacheCode',
@@ -797,11 +813,32 @@ return array(
     'description' => 'CiviCRM will use this setting as path to bootstrap WP.',
     'help_text' => NULL,
   ),
+  'secure_cache_timeout_minutes' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'secure_cache_timeout_minutes',
+    'type' => 'Integer',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => array(
+      'size' => 2,
+      'maxlength' => 8,
+    ),
+    'default' => 20,
+    'add' => '4.7',
+    'title' => 'Secure Cache Timeout',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'Maximum number of minutes that secure form data should linger',
+    'help_text' => NULL,
+  ),
   'site_id' => array(
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'site_id',
     'type' => 'String',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => '',
     'add' => '4.6',
     'title' => 'Unique Site ID',
@@ -815,6 +852,8 @@ return array(
     'group' => 'core',
     'name' => 'systemStatusCheckResult',
     'type' => 'Integer',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
     'default' => 0,
     'add' => '4.7',
     'title' => 'systemStatusCheckResult',
@@ -823,4 +862,60 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'recentItemsMaxCount' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'recentItemsMaxCount',
+    'type' => 'Integer',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => array(
+      'size' => 2,
+      'maxlength' => 3,
+    ),
+    'default' => 20,
+    'add' => '4.7',
+    'title' => 'Size of "Recent Items" stack',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'How many items should CiviCRM store in it\'s "Recently viewed" list.',
+    'help_text' => NULL,
+  ),
+  'recentItemsProviders' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'recentItemsProviders',
+    'type' => 'Array',
+    'html_type' => 'Select',
+    'quick_form_type' => 'Select',
+    'html_attributes' => array(
+      'multiple' => 1,
+      'class' => 'crm-select2',
+    ),
+    'default' => '',
+    'add' => '4.7',
+    'title' => 'Recent Items Providers',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'What providers may save views in CiviCRM\'s "Recently viewed" list. If empty, all are in.',
+    'help_text' => NULL,
+    'pseudoconstant' => array(
+      'callback' => 'CRM_Utils_Recent::getProviders',
+    ),
+  ),
+  'dedupe_default_limit' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'dedupe_default_limit',
+    'type' => 'Integer',
+    'default' => 0,
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'add' => '4.7',
+    'title' => 'Default limit for dedupe screen',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => ts('Default to only loading matches against this number of contacts'),
+    'help_text' => ts('Deduping larger databases can crash the server. By configuring a limit other than 0 here the dedupe query will only search for matches against a limited number of contacts.'),
+  ),
 );