diff options
Diffstat (limited to 'types/videoupload/videoupload.install')
-rw-r--r-- | types/videoupload/videoupload.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/types/videoupload/videoupload.install b/types/videoupload/videoupload.install new file mode 100644 index 0000000..9f43a6d --- /dev/null +++ b/types/videoupload/videoupload.install @@ -0,0 +1,27 @@ +<?php +// $Id$ + +/** + * Implements hook_field_schema(). + */ +function uploadfield_field_schema($field) { + return array( + 'columns' => array( + 'fid' => array( + 'description' => 'The {file_managed}.fid being referenced in this field.', + 'type' => 'int', + 'not null' => FALSE, + 'unsigned' => TRUE, + ), + ), + 'indexes' => array( + 'fid' => array('fid'), + ), + 'foreign keys' => array( + 'fid' => array( + 'table' => 'file_managed', + 'columns' => array('fid' => 'fid'), + ), + ), + ); +}
\ No newline at end of file |