You are here

function addressfield_field_info in Address Field 7

Implements hook_field_info()

File

./addressfield.module, line 382
Defines a field for attaching country-specific addresses to entities.

Code

function addressfield_field_info() {
  $fields = array();
  $fields['addressfield'] = array(
    'label' => t('Postal address'),
    'description' => t('A field type used for storing postal addresses according the xNAL standard.'),
    'settings' => array(),
    'instance_settings' => array(),
    'default_widget' => 'addressfield_standard',
    'default_formatter' => 'addressfield_default',
    'property_type' => 'addressfield',
    'property_callbacks' => array(
      'addressfield_property_info_callback',
    ),
  );
  return $fields;
}