You are here

country_field.install in Country Field 7

Contains install functions for country field module.

File

country_field.install
View source
<?php

/**
 * @file
 * Contains install functions for country field module.
 */

/**
 * Implements hook_field_schema().
 */
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,
  );
}

Functions