Merge pull request #13154 from civicrm/5.8
[civicrm-core.git] / settings / Search.setting.php
index 0f805195e1e9be862c9b9e98102a6540b2959053..ab784705b9fff11ee1a057c7e62674971c6a4c68 100644 (file)
@@ -82,7 +82,7 @@ return array(
       'size' => 64,
       'maxlength' => 64,
     ),
-    'html_type' => 'Text',
+    'html_type' => 'text',
     'default' => 'simple',
     'add' => '4.5',
     'title' => 'How to handle full-tet queries',
@@ -211,4 +211,23 @@ return array(
     '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(
+    '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(
+      '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'),
+    '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,
+  ),
 );