CRM_Utils_System::setTitle(ts('Settings - Addresses'));
+ // Address Standardization
+ $addrProviders = array(
+ '' => '- select -') + CRM_Core_SelectValues::addressProvider();
$this->_varNames = array(
CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME =>
array(
'address_standardization_provider' => array(
'html_type' => 'select',
+ 'title' => ts('Provider'),
+ 'option_values' => $addrProviders,
'weight' => 4,
),
'address_standardization_userid' => array(
public function buildQuickForm() {
$this->applyFilter('__ALL__', 'trim');
- // Address Standardization
- $addrProviders = CRM_Core_SelectValues::addressProvider();
- $this->addElement('select',
- 'address_standardization_provider',
- ts('Address Provider'),
- array(
- '' => '- select -') + $addrProviders
- );
-
$this->addFormRule(array('CRM_Admin_Form_Preferences_Address', 'formRule'));
//get the tokens for Mailing Label field