Merge pull request #19025 from sunilpawar/favourite_country
[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 https://civicrm.org/licensing
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 '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. ',
35 ],
36 'address_standardization_userid' => [
37 'group_name' => 'Address Preferences',
38 'group' => 'address',
39 'name' => 'address_standardization_userid',
40 'type' => 'String',
41 'html_type' => 'text',
42 'default' => NULL,
43 'add' => '4.1',
44 'title' => ts('Provider service user ID'),
45 'is_domain' => 1,
46 'is_contact' => 0,
47 'help_text' => NULL,
48 ],
49 'address_standardization_url' => [
50 'group_name' => 'Address Preferences',
51 'group' => 'address',
52 'name' => 'address_standardization_url',
53 'type' => 'Text',
54 'html_type' => 'text',
55 'default' => NULL,
56 'add' => '4.1',
57 'title' => ts('Provider Service URL'),
58 'is_domain' => 1,
59 'is_contact' => 0,
60 'help_text' => 'Web Service URL',
61 'validate_callback' => 'CRM_Utils_Rule::url',
62 ],
63 'hideCountryMailingLabels' => [
64 'group_name' => 'Address Preferences',
65 'group' => 'address',
66 'name' => 'hideCountryMailingLabels',
67 'type' => 'Boolean',
68 'quick_form_type' => 'YesNo',
69 'default' => 0,
70 'add' => '4.7',
71 'title' => ts('Hide Country in Mailing Labels when same as domain country'),
72 'is_domain' => 1,
73 'is_contact' => 0,
74 'description' => ts('Do not display the country field in mailing labels when the country is the same as that of the domain'),
75 'help_text' => NULL,
76 ],
77 ];