Merge pull request #12114 from jitendrapurohit/membership-2
[civicrm-core.git] / settings / Address.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
4a99ac35 6 | Copyright CiviCRM LLC (c) 2004-2017 |
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
4a99ac35 31 * @copyright CiviCRM LLC (c) 2004-2017
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
08e57c58 38return array(
6a488035
TO
39 'address_standardization_provider' => array(
40 'group_name' => 'Address Preferences',
41 'group' => 'address',
42 'name' => 'address_standardization_provider',
43 'type' => 'String',
44 'html_type' => 'Select',
08e57c58 45 'default' => NULL,
6a488035
TO
46 'add' => '4.1',
47 'title' => 'Address Standardization Provider.',
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. ',
6a488035
TO
52 ),
53 'address_standardization_userid' => array(
54 'group_name' => 'Address Preferences',
55 'group' => 'address',
56 'name' => 'address_standardization_userid',
57 'type' => 'String',
58 'html_type' => 'Text',
08e57c58 59 'default' => NULL,
6a488035
TO
60 'add' => '4.1',
61 'title' => 'Web service user ID',
62 'is_domain' => 1,
63 'is_contact' => 0,
08e57c58
TO
64 'description' => NULL,
65 'help_text' => NULL,
6a488035
TO
66 ),
67 'address_standardization_url' => array(
68 'group_name' => 'Address Preferences',
69 'group' => 'address',
70 'name' => 'address_standardization_url',
71 'type' => 'Text',
72 'html_type' => 'Text',
08e57c58 73 'default' => NULL,
6a488035 74 'add' => '4.1',
fc3f8a5c 75 'title' => 'Web Service URL',
6a488035
TO
76 'is_domain' => 1,
77 'is_contact' => 0,
08e57c58 78 'description' => NULL,
fc3f8a5c 79 'help_text' => 'Web Service URL',
6a488035
TO
80 'validate_callback' => 'CRM_Utils_Rule::url',
81 ),
04c56532
SL
82 'hideCountryMailingLabels' => array(
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' => '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 ),
232624b1 96);