function addressfield_tokens_field_formatter_info in Addressfield Tokens 7
Implements hook_field_formatter_info().
1 call to addressfield_tokens_field_formatter_info()
File
- ./
addressfield_tokens.module, line 71 - Main components.
Code
function addressfield_tokens_field_formatter_info() {
return array(
'addressfield_citystate' => array(
'label' => t('City/State'),
'field types' => array(
'addressfield',
),
),
'addressfield_linear' => array(
'label' => t('One line'),
'field types' => array(
'addressfield',
),
),
'addressfield_state' => array(
'label' => t('State'),
'field types' => array(
'addressfield',
),
),
'addressfield_country' => array(
'label' => t('Country'),
'field types' => array(
'addressfield',
),
),
'addressfield_components' => array(
'label' => t('Address components'),
'field types' => array(
'addressfield',
),
'settings' => array(
'components' => array(
'thoroughfare',
'premise',
'locality',
'administrative_area',
'postal_code',
'country',
),
'separator' => ', ',
),
),
);
}