You are here

function sheetnode_field_schema_7002 in Sheetnode 7

Same name and namespace in other branches
  1. 7.2 sheetnode.install \sheetnode_field_schema_7002()
2 calls to sheetnode_field_schema_7002()
sheetnode_field_schema in ./sheetnode.install
Implements hook_field_schema().
sheetnode_update_7002 in ./sheetnode.install
Implements hook_update_N(). Add 'name' field to sheetfields.

File

./sheetnode.install, line 162
Install, update and uninstall functions for the sheetnode module.

Code

function sheetnode_field_schema_7002($field) {
  $columns = array(
    'value' => array(
      'description' => 'The worksheet content.',
      'type' => 'text',
      'size' => 'big',
      'not null' => TRUE,
    ),
    'name' => array(
      'description' => 'The worksheet title.',
      'type' => 'varchar',
      'length' => '100',
      'not null' => TRUE,
      'default' => '',
    ),
  );
  $indexes = array(
    'name' => array(
      'name',
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => $indexes,
  );
}