You are here

function google_map_field_field_info in Google Map Field 7

Same name and namespace in other branches
  1. 7.2 google_map_field.module \google_map_field_field_info()

Implements hook_field_info().

File

./google_map_field.module, line 69
This file defines all the necessary hooks and functions to create a Google Map Field field type and also a WYSIWYG editor plugin for inserting maps directly into filtered content.

Code

function google_map_field_field_info() {
  return array(
    'google_map_field' => array(
      'label' => t('Google Map Field'),
      'description' => t('This field stores and renders Google Maps.'),
      'instance_settings' => array(
        'cardinality' => 1,
      ),
      'default_widget' => 'google_map_field_widget',
      'default_formatter' => 'google_map_field_formatter_default',
    ),
  );
}