| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | CiviCRM version 4.5 | |
| 5 | +--------------------------------------------------------------------+ |
| 6 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 7 | +--------------------------------------------------------------------+ |
| 8 | | This file is a part of CiviCRM. | |
| 9 | | | |
| 10 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 11 | | under the terms of the GNU Affero General Public License | |
| 12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 13 | | | |
| 14 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 17 | | See the GNU Affero General Public License for more details. | |
| 18 | | | |
| 19 | | You should have received a copy of the GNU Affero General Public | |
| 20 | | License and the CiviCRM Licensing Exception along | |
| 21 | | with this program; if not, contact CiviCRM LLC | |
| 22 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 23 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 25 | +--------------------------------------------------------------------+ |
| 26 | */ |
| 27 | |
| 28 | /** |
| 29 | * |
| 30 | * @package CRM |
| 31 | * @copyright CiviCRM LLC (c) 2004-2014 |
| 32 | * $Id$ |
| 33 | * |
| 34 | */ |
| 35 | /* |
| 36 | * Settings metadata file |
| 37 | */ |
| 38 | return array ( |
| 39 | 'search_autocomplete_count' => array( |
| 40 | 'group_name' => 'Search Preferences', |
| 41 | 'group' => 'Search Preferences', |
| 42 | 'name' => 'search_autocomplete_count', |
| 43 | 'prefetch' => 0, |
| 44 | 'type' => 'Integer', |
| 45 | 'quick_form_type' => 'Element', |
| 46 | 'html_type' => 'text', |
| 47 | 'html_attributes' => array( |
| 48 | 'size' => 2, |
| 49 | 'maxlength' => 2, |
| 50 | ), |
| 51 | 'default' => 10, |
| 52 | 'add' => '4.3', |
| 53 | 'title' => 'Autocomplete Results', |
| 54 | 'is_domain' => 1, |
| 55 | 'is_contact' => 0, |
| 56 | 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.', |
| 57 | 'help_text' => null, |
| 58 | ), |
| 59 | 'enable_innodb_fts' => array( |
| 60 | 'group_name' => 'Search Preferences', |
| 61 | 'group' => 'Search Preferences', |
| 62 | 'name' => 'enable_innodb_fts', |
| 63 | 'prefetch' => 0, |
| 64 | 'type' => 'Boolean', |
| 65 | 'quick_form_type' => 'YesNo', |
| 66 | 'default' => 0, |
| 67 | 'add' => '4.4', |
| 68 | 'title' => 'InnoDB Full Text Search', |
| 69 | 'is_domain' => 1, |
| 70 | 'is_contact' => 0, |
| 71 | 'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)", |
| 72 | 'help_text' => null, |
| 73 | 'on_change' => array( |
| 74 | array('CRM_Core_InnoDBIndexer', 'onToggleFts'), |
| 75 | ), |
| 76 | ), |
| 77 | 'fts_query_mode' => array( |
| 78 | 'group_name' => 'Search Preferences', |
| 79 | 'group' => 'Search Preferences', |
| 80 | 'name' => 'fts_query_mode', |
| 81 | 'prefetch' => 0, |
| 82 | 'type' => 'String', |
| 83 | 'quick_form_type' => 'Element', |
| 84 | 'html_type' => 'text', |
| 85 | 'html_attributes' => array( |
| 86 | 'size' => 64, |
| 87 | 'maxlength' => 64, |
| 88 | ), |
| 89 | 'html_type' => 'Text', |
| 90 | 'default' => 'simple', |
| 91 | 'add' => '4.5', |
| 92 | 'title' => 'How to handle full-tet queries', |
| 93 | 'is_domain' => 1, |
| 94 | 'is_contact' => 0, |
| 95 | 'description' => null, |
| 96 | 'help_text' => null, |
| 97 | ), |
| 98 | ); |