function geofield_field_info in Geofield 7
Same name and namespace in other branches
- 7.2 geofield.module \geofield_field_info()
Implements hook_field_info().
File
- ./
geofield.module, line 11
Code
function geofield_field_info() {
return array(
'geofield' => array(
'label' => 'Geofield',
'description' => t('This field stores geo information.'),
'default_widget' => 'geofield_wkt',
'default_formatter' => 'geofield_wkt',
'instance_settings' => array(
'local_solr' => array(
'enabled' => FALSE,
'lat_field' => 'lat',
'lng_field' => 'lng',
),
),
'property_type' => 'geofield',
'property_callbacks' => array(
'geofield_property_info_callback',
),
),
);
}