You are here

function google_map_field_form_field_ui_field_edit_form_alter in Google Map Field 7

Implements form_field_ui_field_edit_form_alter().

File

./google_map_field.module, line 462
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_form_field_ui_field_edit_form_alter(&$form, &$form_state) {
  if ($form['#field']['type'] == 'google_map_field') {
    drupal_add_css(drupal_get_path('module', 'google_map_field') . '/css/google_map_field.css');
    $form['field']['cardinality']['#default_value'] = 1;
    $form['field']['#access'] = FALSE;
  }
}