function addressfield_autocomplete_field_widget_info in Addressfield Autocomplete 7
Implements hook_field_widget_info().
File
- ./
addressfield_autocomplete.module, line 62 - The Addressfield Autocomplete module code.
Code
function addressfield_autocomplete_field_widget_info() {
return array(
'addressfield_autocomplete' => array(
'label' => t('Address Autocomplete'),
'field types' => array(
'addressfield',
),
'settings' => array(
'available_countries' => array(),
'default_country' => '',
'format_handlers' => array(
'address',
),
'map' => TRUE,
'reveal' => TRUE,
'manual_text' => t('Enter one manually'),
'visible_markers' => TRUE,
'draggable' => TRUE,
'geolocation' => TRUE,
'reverse_geocode' => FALSE,
'html5_geocode' => TRUE,
'types' => 'geocode',
'restrict_country' => array(),
),
),
'addressfield_autocomplete_latlng' => array(
'label' => t('Fill from Addressfield Autocomplete'),
'field types' => array(
'geofield',
'geolocation_latlng',
'location',
),
'settings' => array(
'addressfield_autocomplete_field' => '',
'delta_handling' => 'default',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}