Mercurial > hg > MPIWG-drupal-modules
view sites/all/modules/custom/digitalobjects/digitalobjects.install @ 0:015d06b10d37 default tip
initial
author | dwinter |
---|---|
date | Wed, 31 Jul 2013 13:49:13 +0200 |
parents | |
children |
line wrap: on
line source
<?php /** * @file * Install, update, and uninstall functions for the field_example module. */ /** * Implements hook_field_schema(). * * Defines the database schema of the field, using the format used by the * Schema API. * * * All implementations of hook_field_schema() must be in the module's * .install file. * * @see http://drupal.org/node/146939 * @see schemaapi * @see hook_field_schema() * @ingroup field_example */ function digitalobjects_field_schema($field) { $columns = array( 'objid' => array('type' => 'varchar', 'length' => 20, 'not null' => FALSE), ); $indexes = array( 'objid' => array('objid'), ); return array( 'columns' => $columns, 'indexes' => $indexes, ); }