You are here

function country_field_field_schema in Country Field 7

Implements hook_field_schema().

File

./country_field.install, line 11
Contains install functions for country field module.

Code

function country_field_field_schema($field) {
  $columns = array(
    'value' => array(
      'type' => 'varchar',
      'length' => 4,
      'not null' => FALSE,
    ),
  );
  $indexes = array(
    'value' => array(
      'value',
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => $indexes,
  );
}