Merge pull request #16469 from civicrm/5.22
[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 * $Id$
17 *
18 * Settings metadata file
19 */
20 return [
21 'geoAPIKey' => [
22 'add' => '4.7',
23 'help_text' => NULL,
24 'is_domain' => 1,
25 'is_contact' => 0,
26 'group_name' => 'Map Preferences',
27 'group' => 'map',
28 'name' => 'geoAPIKey',
29 'type' => 'String',
30 'quick_form_type' => 'Element',
31 'html_type' => 'text',
32 'html_attributes' => [
33 'size' => '32',
34 'maxlength' => '64',
35 ],
36 'default' => NULL,
37 'title' => ts('Geo Provider Key'),
38 'description' => ts('Enter the API key or Application ID associated with your geocoding provider.'),
39 ],
40 'geoProvider' => [
41 'add' => '4.7',
42 'help_text' => NULL,
43 'is_domain' => 1,
44 'is_contact' => 0,
45 'group_name' => 'Map Preferences',
46 'group' => 'map',
47 'name' => 'geoProvider',
48 'type' => 'String',
49 'quick_form_type' => 'Select',
50 'html_type' => 'Select',
51 'html_attributes' => [
52 'class' => 'crm-select2',
53 ],
54 'pseudoconstant' => [
55 'callback' => 'CRM_Core_SelectValues::geoProvider',
56 ],
57 'default' => NULL,
58 'title' => ts('Geocoding Provider'),
59 'description' => ts('This can be the same or different from the mapping provider selected.'),
60 ],
61 'mapAPIKey' => [
62 'add' => '4.7',
63 'help_text' => NULL,
64 'is_domain' => 1,
65 'is_contact' => 0,
66 'group_name' => 'Map Preferences',
67 'group' => 'map',
68 'name' => 'mapAPIKey',
69 'type' => 'String',
70 'quick_form_type' => 'Element',
71 'html_type' => 'text',
72 'html_attributes' => [
73 'size' => '32',
74 'maxlength' => '64',
75 ],
76 'default' => NULL,
77 'title' => ts('Map Provider Key'),
78 '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.'),
79 ],
80 'mapProvider' => [
81 'add' => '4.7',
82 'help_text' => NULL,
83 'is_domain' => 1,
84 'is_contact' => 0,
85 'group_name' => 'Map Preferences',
86 'group' => 'map',
87 'name' => 'mapProvider',
88 'type' => 'String',
89 'quick_form_type' => 'Select',
90 'html_type' => 'Select',
91 'html_attributes' => [
92 'class' => 'crm-select2',
93 ],
94 'pseudoconstant' => [
95 'callback' => 'CRM_Core_SelectValues::mapProvider',
96 ],
97 'default' => NULL,
98 'title' => ts('Mapping Provider'),
99 'description' => ts('Choose the mapping provider that has the best coverage for the majority of your contact addresses.'),
100 ],
101 ];