You are here

function countries_field_schema in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.install \countries_field_schema()
  2. 7 countries.module \countries_field_schema()

Implements hook_field_schema().

File

./countries.install, line 89
Install file for Countries module.

Code

function countries_field_schema($field) {
  return array(
    'columns' => array(
      'iso2' => array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'iso2' => array(
        'iso2',
      ),
    ),
  );
}