Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-19-00-06-22
[civicrm-core.git] / settings / Address.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
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 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2014
32 * $Id$
33 *
34 */
35 /*
36 * Settings metadata file
37 */
38 return array (
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',
45 'default' => null,
46 'add' => '4.1',
47 'title' => 'Address Standardization Provider.',
48 'is_domain' => 1,
49 'is_contact' => 0,
50 'description' => null,
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/webtools-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. ',
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',
59 'default' => null,
60 'add' => '4.1',
61 'title' => 'Web service user ID',
62 'is_domain' => 1,
63 'is_contact' => 0,
64 'description' => null,
65 'help_text' => null,
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',
73 'default' => null,
74 'add' => '4.1',
75 'title' => 'Web service url',
76 'is_domain' => 1,
77 'is_contact' => 0,
78 'description' => null,
79 'help_text' => 'Web service URL.',
80 'validate_callback' => 'CRM_Utils_Rule::url',
81 ),
82 );