| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | Copyright CiviCRM LLC. All rights reserved. | |
| 5 | | | |
| 6 | | This work is published under the GNU AGPLv3 license with some | |
| 7 | | permitted exceptions and without any warranty. For full license | |
| 8 | | and copyright information, see https://civicrm.org/licensing | |
| 9 | +--------------------------------------------------------------------+ |
| 10 | */ |
| 11 | |
| 12 | /** |
| 13 | * |
| 14 | * @package CRM |
| 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
| 16 | * Settings metadata file |
| 17 | */ |
| 18 | return [ |
| 19 | 'geoAPIKey' => [ |
| 20 | 'add' => '4.7', |
| 21 | 'help_text' => NULL, |
| 22 | 'is_domain' => 1, |
| 23 | 'is_contact' => 0, |
| 24 | 'group_name' => 'Map Preferences', |
| 25 | 'group' => 'map', |
| 26 | 'name' => 'geoAPIKey', |
| 27 | 'type' => 'String', |
| 28 | 'quick_form_type' => 'Element', |
| 29 | 'html_type' => 'text', |
| 30 | 'html_attributes' => [ |
| 31 | 'size' => '32', |
| 32 | 'maxlength' => '64', |
| 33 | ], |
| 34 | 'default' => NULL, |
| 35 | 'title' => ts('Geo Provider Key'), |
| 36 | 'description' => ts('Enter the API key or Application ID associated with your geocoding provider.'), |
| 37 | ], |
| 38 | 'geoProvider' => [ |
| 39 | 'add' => '4.7', |
| 40 | 'help_text' => NULL, |
| 41 | 'is_domain' => 1, |
| 42 | 'is_contact' => 0, |
| 43 | 'group_name' => 'Map Preferences', |
| 44 | 'group' => 'map', |
| 45 | 'name' => 'geoProvider', |
| 46 | 'type' => 'String', |
| 47 | 'quick_form_type' => 'Select', |
| 48 | 'html_type' => 'Select', |
| 49 | 'html_attributes' => [ |
| 50 | 'class' => 'crm-select2', |
| 51 | ], |
| 52 | 'pseudoconstant' => [ |
| 53 | 'callback' => 'CRM_Core_SelectValues::geoProvider', |
| 54 | ], |
| 55 | 'default' => NULL, |
| 56 | 'title' => ts('Geocoding Provider'), |
| 57 | 'description' => ts('This can be the same or different from the mapping provider selected.'), |
| 58 | ], |
| 59 | 'mapAPIKey' => [ |
| 60 | 'add' => '4.7', |
| 61 | 'help_text' => NULL, |
| 62 | 'is_domain' => 1, |
| 63 | 'is_contact' => 0, |
| 64 | 'group_name' => 'Map Preferences', |
| 65 | 'group' => 'map', |
| 66 | 'name' => 'mapAPIKey', |
| 67 | 'type' => 'String', |
| 68 | 'quick_form_type' => 'Element', |
| 69 | 'html_type' => 'text', |
| 70 | 'html_attributes' => [ |
| 71 | 'size' => '32', |
| 72 | 'maxlength' => '64', |
| 73 | ], |
| 74 | 'default' => NULL, |
| 75 | 'title' => ts('Map Provider Key'), |
| 76 | 'description' => ts('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.'), |
| 77 | ], |
| 78 | 'mapProvider' => [ |
| 79 | 'add' => '4.7', |
| 80 | 'help_text' => NULL, |
| 81 | 'is_domain' => 1, |
| 82 | 'is_contact' => 0, |
| 83 | 'group_name' => 'Map Preferences', |
| 84 | 'group' => 'map', |
| 85 | 'name' => 'mapProvider', |
| 86 | 'type' => 'String', |
| 87 | 'quick_form_type' => 'Select', |
| 88 | 'html_type' => 'Select', |
| 89 | 'html_attributes' => [ |
| 90 | 'class' => 'crm-select2', |
| 91 | ], |
| 92 | 'pseudoconstant' => [ |
| 93 | 'callback' => 'CRM_Core_SelectValues::mapProvider', |
| 94 | ], |
| 95 | 'default' => NULL, |
| 96 | 'title' => ts('Mapping Provider'), |
| 97 | 'description' => ts('Choose the mapping provider that has the best coverage for the majority of your contact addresses.'), |
| 98 | ], |
| 99 | ]; |