Merge pull request #15958 from civicrm/5.20
[civicrm-core.git] / settings / Address.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
f299f7db 15 * @copyright CiviCRM LLC (c) 2004-2020
6a488035 16 */
c7cd4e2c 17
18/**
6a488035
TO
19 * Settings metadata file
20 */
dfe1f88a
CW
21return [
22 'address_standardization_provider' => [
6a488035
TO
23 'group_name' => 'Address Preferences',
24 'group' => 'address',
25 'name' => 'address_standardization_provider',
26 'type' => 'String',
c7cd4e2c 27 'html_type' => 'select',
08e57c58 28 'default' => NULL,
6a488035 29 'add' => '4.1',
c7cd4e2c 30 'title' => ts('Address Standardization Provider.'),
31 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::addressProvider'],
6a488035
TO
32 'is_domain' => 1,
33 'is_contact' => 0,
08e57c58 34 'description' => NULL,
e719198a 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. ',
dfe1f88a
CW
36 ],
37 'address_standardization_userid' => [
6a488035
TO
38 'group_name' => 'Address Preferences',
39 'group' => 'address',
40 'name' => 'address_standardization_userid',
41 'type' => 'String',
c7cd4e2c 42 'html_type' => 'text',
08e57c58 43 'default' => NULL,
6a488035 44 'add' => '4.1',
c7cd4e2c 45 'title' => ts('Provider service user ID'),
6a488035
TO
46 'is_domain' => 1,
47 'is_contact' => 0,
08e57c58
TO
48 'description' => NULL,
49 'help_text' => NULL,
dfe1f88a
CW
50 ],
51 'address_standardization_url' => [
6a488035
TO
52 'group_name' => 'Address Preferences',
53 'group' => 'address',
54 'name' => 'address_standardization_url',
55 'type' => 'Text',
c7cd4e2c 56 'html_type' => 'text',
08e57c58 57 'default' => NULL,
6a488035 58 'add' => '4.1',
c7cd4e2c 59 'title' => ts('Provider Service URL'),
6a488035
TO
60 'is_domain' => 1,
61 'is_contact' => 0,
08e57c58 62 'description' => NULL,
fc3f8a5c 63 'help_text' => 'Web Service URL',
6a488035 64 'validate_callback' => 'CRM_Utils_Rule::url',
dfe1f88a
CW
65 ],
66 'hideCountryMailingLabels' => [
04c56532
SL
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',
c7cd4e2c 74 'title' => ts('Hide Country in Mailing Labels when same as domain country'),
04c56532
SL
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,
dfe1f88a
CW
79 ],
80];