You are here

function cmis_field_field_schema in CMIS API 7

Same name and namespace in other branches
  1. 7.2 cmis_field/cmis_field.install \cmis_field_field_schema()

Implements hook_field_schema().

This defines the actual database schema of the field, using the format used by the Schema API.

The data being saved is the repository id and cmis object id of the cmis object

See also

hook_field_schema()

File

cmis_field/cmis_field.install, line 16
install file for cmis field

Code

function cmis_field_field_schema($field) {
  $columns = array(
    'path' => array(
      'type' => 'varchar',
      'length' => 150,
      'not null' => FALSE,
    ),
    'title' => array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => FALSE,
    ),
  );
  return array(
    'columns' => $columns,
  );
}