file_field_schema
function file_field_schema
file_field_schema($field)
Implements hook_field_schema().
File
- modules/file/file.install, line 11
- Install, update and uninstall functions for File module.
Code
function file_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, ), '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'), ), 'foreign keys' => array( 'fid' => array( 'table' => 'file_managed', 'columns' => array('fid' => 'fid'), ), ), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!file!file.install/function/file_field_schema/7.x