You are here

function viewfield_field_schema in Viewfield 7.2

Same name and namespace in other branches
  1. 7.3 viewfield.install \viewfield_field_schema()

Implements hook_field_schema().

File

./viewfield.install, line 11
Installation functions for Viewfield module.

Code

function viewfield_field_schema($field) {
  return array(
    'columns' => array(
      'vname' => array(
        'type' => 'varchar',
        'not null' => FALSE,
        // Views requires at least 96 chars for the view name and display, plus
        // we need 1 for our delimiter. Round up to a common value of 128.
        'length' => 128,
      ),
      'vargs' => array(
        'type' => 'varchar',
        'not null' => FALSE,
        'length' => 255,
      ),
    ),
  );
}