summaryrefslogtreecommitdiff
path: root/modules/file/file.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/file/file.install')
-rw-r--r--modules/file/file.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/file/file.install b/modules/file/file.install
index c92068e98..fdf908805 100644
--- a/modules/file/file.install
+++ b/modules/file/file.install
@@ -7,6 +7,38 @@
*/
/**
+ * Implements hook_field_schema().
+ */
+function file_field_schema($field) {
+ return array(
+ 'columns' => array(
+ 'fid' => array(
+ 'description' => 'The {files}.fid being referenced in this field.',
+ 'type' => 'int',
+ 'not null' => FALSE,
+ 'unsigned' => TRUE,
+ ),
+ 'display' => array(
+ 'description' => 'Flag to control whether this file should be displayed when viewing content.',
+ 'type' => 'int',
+ 'size' => 'tiny',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 1,
+ ),
+ 'description' => array(
+ 'description' => 'A description of the file.',
+ 'type' => 'text',
+ 'not null' => FALSE,
+ ),
+ ),
+ 'indexes' => array(
+ 'fid' => array('fid'),
+ ),
+ );
+}
+
+/**
* Implements hook_requirements().
*
* Display information about getting upload progress bars working.