You are here

tzfield.install in Time Zone Field 7

Same filename and directory in other branches
  1. 6 tzfield.install

Time zone field schema.

File

tzfield.install
View source
<?php

/**
 * @file
 * Time zone field schema.
 */

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

Functions

Namesort descending Description
tzfield_field_schema Implements hook_field_schema().