| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | CiviCRM version 5 | |
| 5 | +--------------------------------------------------------------------+ |
| 6 | | Copyright CiviCRM LLC (c) 2004-2019 | |
| 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-2019 |
| 32 | * $Id$ |
| 33 | * |
| 34 | * Settings metadata file |
| 35 | */ |
| 36 | return [ |
| 37 | 'geoAPIKey' => [ |
| 38 | 'add' => '4.7', |
| 39 | 'help_text' => NULL, |
| 40 | 'is_domain' => 1, |
| 41 | 'is_contact' => 0, |
| 42 | 'group_name' => 'Map Preferences', |
| 43 | 'group' => 'map', |
| 44 | 'name' => 'geoAPIKey', |
| 45 | 'type' => 'String', |
| 46 | 'quick_form_type' => 'Element', |
| 47 | 'html_type' => 'text', |
| 48 | 'html_attributes' => [ |
| 49 | 'size' => '32', |
| 50 | 'maxlength' => '64', |
| 51 | ], |
| 52 | 'default' => NULL, |
| 53 | 'title' => 'Geo Provider Key', |
| 54 | 'description' => 'Enter the API key or Application ID associated with your geocoding provider (not required for Yahoo).', |
| 55 | ], |
| 56 | 'geoProvider' => [ |
| 57 | 'add' => '4.7', |
| 58 | 'help_text' => NULL, |
| 59 | 'is_domain' => 1, |
| 60 | 'is_contact' => 0, |
| 61 | 'group_name' => 'Map Preferences', |
| 62 | 'group' => 'map', |
| 63 | 'name' => 'geoProvider', |
| 64 | 'type' => 'String', |
| 65 | 'quick_form_type' => 'Select', |
| 66 | 'html_type' => 'Select', |
| 67 | 'html_attributes' => [ |
| 68 | 'class' => 'crm-select2', |
| 69 | ], |
| 70 | 'pseudoconstant' => [ |
| 71 | 'callback' => 'CRM_Core_SelectValues::geoProvider', |
| 72 | ], |
| 73 | 'default' => NULL, |
| 74 | 'title' => 'Geocoding Provider', |
| 75 | 'description' => 'This can be the same or different from the mapping provider selected.', |
| 76 | ], |
| 77 | 'mapAPIKey' => [ |
| 78 | 'add' => '4.7', |
| 79 | 'help_text' => NULL, |
| 80 | 'is_domain' => 1, |
| 81 | 'is_contact' => 0, |
| 82 | 'group_name' => 'Map Preferences', |
| 83 | 'group' => 'map', |
| 84 | 'name' => 'mapAPIKey', |
| 85 | 'type' => 'String', |
| 86 | 'quick_form_type' => 'Element', |
| 87 | 'html_type' => 'text', |
| 88 | 'html_attributes' => [ |
| 89 | 'size' => '32', |
| 90 | 'maxlength' => '64', |
| 91 | ], |
| 92 | 'default' => NULL, |
| 93 | 'title' => 'Map Provider Key', |
| 94 | 'description' => 'Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.', |
| 95 | ], |
| 96 | 'mapProvider' => [ |
| 97 | 'add' => '4.7', |
| 98 | 'help_text' => NULL, |
| 99 | 'is_domain' => 1, |
| 100 | 'is_contact' => 0, |
| 101 | 'group_name' => 'Map Preferences', |
| 102 | 'group' => 'map', |
| 103 | 'name' => 'mapProvider', |
| 104 | 'type' => 'String', |
| 105 | 'quick_form_type' => 'Select', |
| 106 | 'html_type' => 'Select', |
| 107 | 'html_attributes' => [ |
| 108 | 'class' => 'crm-select2', |
| 109 | ], |
| 110 | 'pseudoconstant' => [ |
| 111 | 'callback' => 'CRM_Core_SelectValues::mapProvider', |
| 112 | ], |
| 113 | 'default' => NULL, |
| 114 | 'title' => 'Mapping Provider', |
| 115 | 'description' => 'Choose the mapping provider that has the best coverage for the majority of your contact addresses.', |
| 116 | ], |
| 117 | ]; |