Merge pull request #13039 from colemanw/quicksearchSetting
[civicrm-core.git] / settings / Search.setting.php
index 6cc84b3f6123e8de090df818de58835f7a0daa35..ab784705b9fff11ee1a057c7e62674971c6a4c68 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
@@ -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,
+  ),
 );