You are here

function gmap_fields_field_info in GMap Module 7.2

Implements hook_field_info().

File

gmap_fields/gmap_fields.module, line 15
GMap Fields - Fields for the GMap module, currently only a marker field.

Code

function gmap_fields_field_info() {
  return array(
    GMAP_FIELDS_TYPE_MARKER => array(
      'label' => t('Gmap Marker'),
      'description' => t('Choose a Gmap Marker icon.'),
      'default_widget' => 'options_select',
      'default_formatter' => GMAP_FIELDS_FORMAT_MARKER_TITLE,
      'settings' => array(
        'allowed_values' => array(),
        'allowed_values_function' => '',
      ),
      'instance_settings' => array(
        'allowed_values_function' => 'gmap_get_marker_titles',
      ),
      'property_type' => 'text',
    ),
  );
}