Merge pull request #14358 from samuelsov/billingblockts
[civicrm-core.git] / settings / Address.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2019
32 */
33
34 /**
35 * Settings metadata file
36 */
37 return [
38 'address_standardization_provider' => [
39 'group_name' => 'Address Preferences',
40 'group' => 'address',
41 'name' => 'address_standardization_provider',
42 'type' => 'String',
43 'html_type' => 'select',
44 'default' => NULL,
45 'add' => '4.1',
46 'title' => ts('Address Standardization Provider.'),
47 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::addressProvider'],
48 'is_domain' => 1,
49 'is_contact' => 0,
50 'description' => NULL,
51 '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. ',
52 ],
53 'address_standardization_userid' => [
54 'group_name' => 'Address Preferences',
55 'group' => 'address',
56 'name' => 'address_standardization_userid',
57 'type' => 'String',
58 'html_type' => 'text',
59 'default' => NULL,
60 'add' => '4.1',
61 'title' => ts('Provider service user ID'),
62 'is_domain' => 1,
63 'is_contact' => 0,
64 'description' => NULL,
65 'help_text' => NULL,
66 ],
67 'address_standardization_url' => [
68 'group_name' => 'Address Preferences',
69 'group' => 'address',
70 'name' => 'address_standardization_url',
71 'type' => 'Text',
72 'html_type' => 'text',
73 'default' => NULL,
74 'add' => '4.1',
75 'title' => ts('Provider Service URL'),
76 'is_domain' => 1,
77 'is_contact' => 0,
78 'description' => NULL,
79 'help_text' => 'Web Service URL',
80 'validate_callback' => 'CRM_Utils_Rule::url',
81 ],
82 'hideCountryMailingLabels' => [
83 'group_name' => 'Address Preferences',
84 'group' => 'address',
85 'name' => 'hideCountryMailingLabels',
86 'type' => 'Boolean',
87 'quick_form_type' => 'YesNo',
88 'default' => 0,
89 'add' => '4.7',
90 'title' => ts('Hide Country in Mailing Labels when same as domain country'),
91 'is_domain' => 1,
92 'is_contact' => 0,
93 'description' => 'Do not display the country field in mailing labels when the country is the same as that of the domain',
94 'help_text' => NULL,
95 ],
96 ];