function addressfield_field_widget_info in Address Field 7
Implements hook_field_widget_info()
File
- ./
addressfield.module, line 508 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_field_widget_info() {
$widgets = array();
$widgets['addressfield_standard'] = array(
'label' => t('Dynamic address form'),
'field types' => array(
'addressfield',
),
'settings' => array(
'available_countries' => array(),
// Can't use variable_get('site_default_country') here because it would
// set the value in stone. Instead, the site_default option allows the
// default country to always reflect the current site setting.
'default_country' => 'site_default',
'format_handlers' => array(
'address',
),
),
);
return $widgets;
}