Fix deleting of campaigns and saving of custom data for campaign and also ensure...
[civicrm-core.git] / settings / Search.setting.php
index f4db966c90d385f03bf9fb6d3cfd4cc82265fbc1..4d5e198b07a422e7d07cad9e91fe2fa18ca2125b 100644 (file)
 /*
  * Settings metadata file
  */
-return array(
-  'search_autocomplete_count' => array(
+return [
+  'search_autocomplete_count' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'search_autocomplete_count',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
-    'html_type' => 'text',
-    'html_attributes' => array(
-      'size' => 2,
-      'maxlength' => 2,
-    ),
+    'html_type' => 'number',
     'default' => 10,
     'add' => '4.3',
     'title' => 'Autocomplete Results',
@@ -54,8 +50,8 @@ return array(
     'is_contact' => 0,
     'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
     'help_text' => NULL,
-  ),
-  'enable_innodb_fts' => array(
+  ],
+  'enable_innodb_fts' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'enable_innodb_fts',
@@ -68,20 +64,20 @@ return array(
     'is_contact' => 0,
     'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
     'help_text' => NULL,
-    'on_change' => array(
-      array('CRM_Core_InnoDBIndexer', 'onToggleFts'),
-    ),
-  ),
-  'fts_query_mode' => array(
+    'on_change' => [
+      ['CRM_Core_InnoDBIndexer', 'onToggleFts'],
+    ],
+  ],
+  'fts_query_mode' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'fts_query_mode',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 64,
-    ),
+    ],
     'html_type' => 'text',
     'default' => 'simple',
     'add' => '4.5',
@@ -90,8 +86,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'includeOrderByClause' => array(
+  ],
+  'includeOrderByClause' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeOrderByClause',
@@ -104,8 +100,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
     'help_text' => NULL,
-  ),
-  'includeWildCardInName' => array(
+  ],
+  'includeWildCardInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeWildCardInName',
@@ -118,8 +114,8 @@ return array(
     'is_contact' => 0,
     'description' => "If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'.",
     'help_text' => NULL,
-  ),
-  'includeEmailInName' => array(
+  ],
+  'includeEmailInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeEmailInName',
@@ -132,8 +128,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.',
     'help_text' => NULL,
-  ),
-  'includeNickNameInName' => array(
+  ],
+  'includeNickNameInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeNickNameInName',
@@ -146,8 +142,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, nicknames are automatically included when users search by Name.',
     'help_text' => NULL,
-  ),
-  'includeAlphabeticalPager' => array(
+  ],
+  'includeAlphabeticalPager' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeAlphabeticalPager',
@@ -160,14 +156,14 @@ return array(
     'is_contact' => 0,
     'description' => 'If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.',
     'help_text' => NULL,
-  ),
-  'smartGroupCacheTimeout' => array(
+  ],
+  'smartGroupCacheTimeout' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'smartGroupCacheTimeout',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
-    'html_type' => 'text',
+    'html_type' => 'number',
     'default' => 5,
     'add' => '4.6',
     'title' => 'Smart group cache timeout',
@@ -175,20 +171,20 @@ return array(
     'is_contact' => 0,
     'description' => 'The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.',
     'help_text' => NULL,
-  ),
-  'defaultSearchProfileID' => array(
+  ],
+  'defaultSearchProfileID' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'defaultSearchProfileID',
     'type' => 'Integer',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
-    ),
+    ],
     'default' => NULL,
     'add' => '4.6',
     'title' => 'Default Contact Search Profile',
@@ -196,29 +192,29 @@ return array(
     'is_contact' => 0,
     'description' => 'If set, this will be the default profile used for contact search.',
     'help_text' => NULL,
-  ),
-  'prevNextBackend' => array(
+  ],
+  'prevNextBackend' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'prevNextBackend',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'default',
     'add' => '5.9',
     'title' => 'PrevNext Cache',
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
-    ),
+    ],
     'description' => 'When performing a search, how should the search-results be cached?',
     'help_text' => '',
-  ),
-  'searchPrimaryDetailsOnly' => array(
+  ],
+  'searchPrimaryDetailsOnly' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'searchPrimaryDetailsOnly',
@@ -231,24 +227,24 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.',
     'help_text' => NULL,
-  ),
-  'quicksearch_options' => array(
+  ],
+  'quicksearch_options' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'quicksearch_options',
     'type' => 'string',
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-    'quick_form_type' => 'CheckBoxes',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'sortable' => TRUE,
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::quicksearchOptions',
-    ),
-    'default' => array('sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'),
+    ],
+    'default' => ['sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'],
     'add' => '5.8',
     'title' => ts('Quicksearch options'),
     'is_domain' => '1',
     'is_contact' => 0,
     'description' => ts("Which fields can be searched on in the menubar quicksearch box? Don't see your custom field here? Make sure it is marked as Searchable."),
     'help_text' => NULL,
-  ),
-);
+  ],
+];