Merge pull request #15916 from civicrm/5.20
[civicrm-core.git] / settings / Address.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This code 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 (c) 2004-2020
16 */
17
18 /**
19 * Settings metadata file
20 */
21 return [
22 'address_standardization_provider' => [
23 'group_name' => 'Address Preferences',
24 'group' => 'address',
25 'name' => 'address_standardization_provider',
26 'type' => 'String',
27 'html_type' => 'select',
28 'default' => NULL,
29 'add' => '4.1',
30 'title' => ts('Address Standardization Provider.'),
31 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::addressProvider'],
32 'is_domain' => 1,
33 'is_contact' => 0,
34 'description' => NULL,
35 'help_text' => 'CiviCRM includes an optional plugin for interfacing with the United States Postal Services (USPS) Address Standardization web service. You must register to use the USPS service at https://www.usps.com/business/web-tools-apis/address-information.htm. If you are approved, they will provide you with a User ID and the URL for the service. Plugins for other address standardization services may be available from 3rd party developers. If installed, they will be included in the drop-down below. ',
36 ],
37 'address_standardization_userid' => [
38 'group_name' => 'Address Preferences',
39 'group' => 'address',
40 'name' => 'address_standardization_userid',
41 'type' => 'String',
42 'html_type' => 'text',
43 'default' => NULL,
44 'add' => '4.1',
45 'title' => ts('Provider service user ID'),
46 'is_domain' => 1,
47 'is_contact' => 0,
48 'description' => NULL,
49 'help_text' => NULL,
50 ],
51 'address_standardization_url' => [
52 'group_name' => 'Address Preferences',
53 'group' => 'address',
54 'name' => 'address_standardization_url',
55 'type' => 'Text',
56 'html_type' => 'text',
57 'default' => NULL,
58 'add' => '4.1',
59 'title' => ts('Provider Service URL'),
60 'is_domain' => 1,
61 'is_contact' => 0,
62 'description' => NULL,
63 'help_text' => 'Web Service URL',
64 'validate_callback' => 'CRM_Utils_Rule::url',
65 ],
66 'hideCountryMailingLabels' => [
67 'group_name' => 'Address Preferences',
68 'group' => 'address',
69 'name' => 'hideCountryMailingLabels',
70 'type' => 'Boolean',
71 'quick_form_type' => 'YesNo',
72 'default' => 0,
73 'add' => '4.7',
74 'title' => ts('Hide Country in Mailing Labels when same as domain country'),
75 'is_domain' => 1,
76 'is_contact' => 0,
77 'description' => 'Do not display the country field in mailing labels when the country is the same as that of the domain',
78 'help_text' => NULL,
79 ],
80 ];