You are here

gm3_region_field.install in Google Maps API V3 7

File

gm3_region/gm3_region_field/gm3_region_field.install
View source
<?php

/**
 * Implementation of hook_field_schema($field).
 */
function gm3_region_field_field_schema($field) {
  switch ($field['type']) {
    case 'gm3_region':
      return array(
        'columns' => array(
          'region_id' => array(
            'description' => "Region ID",
            'type' => 'varchar',
            'not null' => TRUE,
            'length' => 16,
          ),
        ),
        'indexes' => array(
          'region_id' => array(
            'region_id',
          ),
        ),
      );
      break;
  }
}

Functions

Namesort descending Description
gm3_region_field_field_schema Implementation of hook_field_schema($field).