Commit | Line | Data |
---|---|---|
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 | |
f452d72c | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 | 16 | */ |
c7cd4e2c | 17 | |
18 | /** | |
6a488035 TO |
19 | * Settings metadata file |
20 | */ | |
dfe1f88a CW |
21 | return [ |
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, | |
e719198a | 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. ', |
dfe1f88a CW |
35 | ], |
36 | 'address_standardization_userid' => [ | |
6a488035 TO |
37 | 'group_name' => 'Address Preferences', |
38 | 'group' => 'address', | |
39 | 'name' => 'address_standardization_userid', | |
40 | 'type' => 'String', | |
c7cd4e2c | 41 | 'html_type' => 'text', |
08e57c58 | 42 | 'default' => NULL, |
6a488035 | 43 | 'add' => '4.1', |
c7cd4e2c | 44 | 'title' => ts('Provider service user ID'), |
6a488035 TO |
45 | 'is_domain' => 1, |
46 | 'is_contact' => 0, | |
08e57c58 | 47 | 'help_text' => NULL, |
dfe1f88a CW |
48 | ], |
49 | 'address_standardization_url' => [ | |
6a488035 TO |
50 | 'group_name' => 'Address Preferences', |
51 | 'group' => 'address', | |
52 | 'name' => 'address_standardization_url', | |
53 | 'type' => 'Text', | |
c7cd4e2c | 54 | 'html_type' => 'text', |
08e57c58 | 55 | 'default' => NULL, |
6a488035 | 56 | 'add' => '4.1', |
c7cd4e2c | 57 | 'title' => ts('Provider Service URL'), |
6a488035 TO |
58 | 'is_domain' => 1, |
59 | 'is_contact' => 0, | |
fc3f8a5c | 60 | 'help_text' => 'Web Service URL', |
6a488035 | 61 | 'validate_callback' => 'CRM_Utils_Rule::url', |
dfe1f88a CW |
62 | ], |
63 | 'hideCountryMailingLabels' => [ | |
04c56532 SL |
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', | |
c7cd4e2c | 71 | 'title' => ts('Hide Country in Mailing Labels when same as domain country'), |
04c56532 SL |
72 | 'is_domain' => 1, |
73 | 'is_contact' => 0, | |
0f5a1e12 | 74 | 'description' => ts('Do not display the country field in mailing labels when the country is the same as that of the domain'), |
04c56532 | 75 | 'help_text' => NULL, |
dfe1f88a CW |
76 | ], |
77 | ]; |