You are here

cmis_field.install in CMIS API 7.2

install file for cmis field

File

cmis_field/cmis_field.install
View source
<?php

/**
 * @file install file for cmis  field
 */

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

Functions

Namesort descending Description
cmis_field_field_schema Implements hook_field_schema().