You are here

function tablefield_field_schema in TableField 7

Same name and namespace in other branches
  1. 7.3 tablefield.install \tablefield_field_schema()
  2. 7.2 tablefield.install \tablefield_field_schema()

Implements hook_field_schema().

File

./tablefield.module, line 58
This module provides a set of fields that can be used to store tabular data with a node. The implementation uses a custom CCK widget.

Code

function tablefield_field_schema($field) {
  return array(
    'columns' => array(
      'value' => array(
        'type' => 'text',
        'size' => 'big',
      ),
      'format' => array(
        'type' => 'varchar',
        'length' => 255,
        'default value' => '',
      ),
    ),
  );
}