You are here

function tzfield_field_schema in Time Zone Field 7

Implements hook_field_schema().

File

./tzfield.install, line 11
Time zone field schema.

Code

function tzfield_field_schema($field) {
  return array(
    'columns' => array(
      'value' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => FALSE,
        'sortable' => TRUE,
        'description' => 'Time zone identifier from the tz database.',
      ),
    ),
    'indexes' => array(
      'value' => array(
        'value',
      ),
    ),
  );
}