Merge pull request #23471 from totten/master-exceptions
[civicrm-core.git] / settings / Map.setting.php
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 'on_change' => [
56 'CRM_Utils_GeocodeProvider::reset',
57 ],
58 'default' => NULL,
59 'title' => ts('Geocoding Provider'),
60 'description' => ts('This can be the same or different from the mapping provider selected.'),
61 ],
62 'mapAPIKey' => [
63 'add' => '4.7',
64 'help_text' => NULL,
65 'is_domain' => 1,
66 'is_contact' => 0,
67 'group_name' => 'Map Preferences',
68 'group' => 'map',
69 'name' => 'mapAPIKey',
70 'type' => 'String',
71 'quick_form_type' => 'Element',
72 'html_type' => 'text',
73 'html_attributes' => [
74 'size' => '32',
75 'maxlength' => '64',
76 ],
77 'default' => NULL,
78 'title' => ts('Map Provider Key'),
79 '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.'),
80 ],
81 'mapProvider' => [
82 'add' => '4.7',
83 'help_text' => NULL,
84 'is_domain' => 1,
85 'is_contact' => 0,
86 'group_name' => 'Map Preferences',
87 'group' => 'map',
88 'name' => 'mapProvider',
89 'type' => 'String',
90 'quick_form_type' => 'Select',
91 'html_type' => 'Select',
92 'html_attributes' => [
93 'class' => 'crm-select2',
94 ],
95 'pseudoconstant' => [
96 'callback' => 'CRM_Core_SelectValues::mapProvider',
97 ],
98 'default' => NULL,
99 'title' => ts('Mapping Provider'),
100 'description' => ts('Choose the mapping provider that has the best coverage for the majority of your contact addresses.'),
101 ],
102 ];