Merge pull request #15809 from eileenmcnaughton/except
[civicrm-core.git] / settings / Address.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
f299f7db 6 | Copyright CiviCRM LLC (c) 2004-2020 |
6a488035
TO
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 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
f299f7db 31 * @copyright CiviCRM LLC (c) 2004-2020
6a488035 32 */
c7cd4e2c 33
34/**
6a488035
TO
35 * Settings metadata file
36 */
dfe1f88a
CW
37return [
38 'address_standardization_provider' => [
6a488035
TO
39 'group_name' => 'Address Preferences',
40 'group' => 'address',
41 'name' => 'address_standardization_provider',
42 'type' => 'String',
c7cd4e2c 43 'html_type' => 'select',
08e57c58 44 'default' => NULL,
6a488035 45 'add' => '4.1',
c7cd4e2c 46 'title' => ts('Address Standardization Provider.'),
47 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::addressProvider'],
6a488035
TO
48 'is_domain' => 1,
49 'is_contact' => 0,
08e57c58 50 'description' => NULL,
e719198a 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. ',
dfe1f88a
CW
52 ],
53 'address_standardization_userid' => [
6a488035
TO
54 'group_name' => 'Address Preferences',
55 'group' => 'address',
56 'name' => 'address_standardization_userid',
57 'type' => 'String',
c7cd4e2c 58 'html_type' => 'text',
08e57c58 59 'default' => NULL,
6a488035 60 'add' => '4.1',
c7cd4e2c 61 'title' => ts('Provider service user ID'),
6a488035
TO
62 'is_domain' => 1,
63 'is_contact' => 0,
08e57c58
TO
64 'description' => NULL,
65 'help_text' => NULL,
dfe1f88a
CW
66 ],
67 'address_standardization_url' => [
6a488035
TO
68 'group_name' => 'Address Preferences',
69 'group' => 'address',
70 'name' => 'address_standardization_url',
71 'type' => 'Text',
c7cd4e2c 72 'html_type' => 'text',
08e57c58 73 'default' => NULL,
6a488035 74 'add' => '4.1',
c7cd4e2c 75 'title' => ts('Provider Service URL'),
6a488035
TO
76 'is_domain' => 1,
77 'is_contact' => 0,
08e57c58 78 'description' => NULL,
fc3f8a5c 79 'help_text' => 'Web Service URL',
6a488035 80 'validate_callback' => 'CRM_Utils_Rule::url',
dfe1f88a
CW
81 ],
82 'hideCountryMailingLabels' => [
04c56532
SL
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',
c7cd4e2c 90 'title' => ts('Hide Country in Mailing Labels when same as domain country'),
04c56532
SL
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,
dfe1f88a
CW
95 ],
96];