Mercurial > hg > MPIWG-drupal-modules
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/custom/digitalobjects/digitalobjects.install Wed Jul 31 13:49:13 2013 +0200 @@ -0,0 +1,35 @@ +<?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, + ); +} \ No newline at end of file