You are here

function google_map_field_field_schema in Google Map Field 7

Same name and namespace in other branches
  1. 7.2 google_map_field.install \google_map_field_field_schema()

Implements hook_field_schema().

File

./google_map_field.install, line 12
Defines schema for google_map fields

Code

function google_map_field_field_schema($field) {
  return array(
    'columns' => array(
      'lat' => array(
        'type' => 'float',
        'length' => 15,
        'not null' => FALSE,
      ),
      'lon' => array(
        'type' => 'float',
        'length' => 15,
        'not null' => FALSE,
      ),
      'map_width' => array(
        'type' => 'int',
        'length' => 10,
        'not null' => FALSE,
      ),
      'map_height' => array(
        'type' => 'int',
        'length' => 10,
        'not null' => FALSE,
      ),
      'zoom' => array(
        'type' => 'int',
        'length' => 10,
        'not null' => FALSE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => FALSE,
      ),
    ),
  );
}