function location_cck_field_formatter_info in Location 6.3
Same name and namespace in other branches
- 5.3 contrib/location_cck/location_cck.module \location_cck_field_formatter_info()
- 7.5 contrib/location_cck/location_cck.module \location_cck_field_formatter_info()
- 7.3 contrib/location_cck/location_cck.module \location_cck_field_formatter_info()
- 7.4 contrib/location_cck/location_cck.module \location_cck_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- contrib/
location_cck/ location_cck.module, line 195 - Defines location field type.
Code
function location_cck_field_formatter_info() {
$info = array(
'default' => array(
'label' => t('Default (address)'),
'field types' => array(
'location',
),
),
);
if (module_exists('gmap')) {
$info['all'] = array(
'label' => t('Address with map'),
'field types' => array(
'location',
),
);
$info['map'] = array(
'label' => t('Map only'),
'field types' => array(
'location',
),
);
$info['multiple'] = array(
'label' => t('Multiple field values on a single map'),
'field types' => array(
'location',
),
'multiple values' => CONTENT_HANDLE_MODULE,
);
$info['multiple_all'] = array(
'label' => t('Addresses with multiple field values on a single map'),
'field types' => array(
'location',
),
'multiple values' => CONTENT_HANDLE_MODULE,
);
}
return $info;
}