Merge pull request #19487 from civicrm/5.34
[civicrm-core.git] / settings / Map.setting.php
CommitLineData
3784888f
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
3784888f 5 | |
6b7eb9df
TO
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 |
3784888f
TO
9 +--------------------------------------------------------------------+
10 */
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
3784888f
TO
16 * Settings metadata file
17 */
dfe1f88a
CW
18return [
19 'geoAPIKey' => [
3784888f 20 'add' => '4.7',
3784888f
TO
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',
dfe1f88a 30 'html_attributes' => [
3784888f
TO
31 'size' => '32',
32 'maxlength' => '64',
dfe1f88a 33 ],
3784888f 34 'default' => NULL,
4540d6d3 35 'title' => ts('Geo Provider Key'),
36 'description' => ts('Enter the API key or Application ID associated with your geocoding provider.'),
dfe1f88a
CW
37 ],
38 'geoProvider' => [
3784888f 39 'add' => '4.7',
3784888f
TO
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',
1ec598f3 47 'quick_form_type' => 'Select',
3784888f 48 'html_type' => 'Select',
dfe1f88a 49 'html_attributes' => [
1ec598f3 50 'class' => 'crm-select2',
dfe1f88a
CW
51 ],
52 'pseudoconstant' => [
3784888f 53 'callback' => 'CRM_Core_SelectValues::geoProvider',
dfe1f88a 54 ],
3784888f 55 'default' => NULL,
4540d6d3 56 'title' => ts('Geocoding Provider'),
57 'description' => ts('This can be the same or different from the mapping provider selected.'),
dfe1f88a
CW
58 ],
59 'mapAPIKey' => [
3784888f 60 'add' => '4.7',
3784888f
TO
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',
dfe1f88a 70 'html_attributes' => [
3784888f
TO
71 'size' => '32',
72 'maxlength' => '64',
dfe1f88a 73 ],
3784888f 74 'default' => NULL,
4540d6d3 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.'),
dfe1f88a
CW
77 ],
78 'mapProvider' => [
3784888f 79 'add' => '4.7',
3784888f
TO
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',
1ec598f3
TO
87 'quick_form_type' => 'Select',
88 'html_type' => 'Select',
dfe1f88a 89 'html_attributes' => [
1ec598f3 90 'class' => 'crm-select2',
dfe1f88a
CW
91 ],
92 'pseudoconstant' => [
3784888f 93 'callback' => 'CRM_Core_SelectValues::mapProvider',
dfe1f88a 94 ],
3784888f 95 'default' => NULL,
4540d6d3 96 'title' => ts('Mapping Provider'),
97 'description' => ts('Choose the mapping provider that has the best coverage for the majority of your contact addresses.'),
dfe1f88a
CW
98 ],
99];