diff options
Diffstat (limited to 'modules/image/image.install')
-rw-r--r-- | modules/image/image.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/image/image.install b/modules/image/image.install index 40c0e9ddf..3ebf6eef5 100644 --- a/modules/image/image.install +++ b/modules/image/image.install @@ -108,6 +108,37 @@ function image_schema() { } /** + * Implements hook_field_schema(). + */ +function image_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, + ), + 'alt' => array( + 'description' => "Alternative image text, for the image's 'alt' attribute.", + 'type' => 'varchar', + 'length' => 128, + 'not null' => FALSE, + ), + 'title' => array( + 'description' => "Image title text, for the image's 'title' attribute.", + 'type' => 'varchar', + 'length' => 128, + 'not null' => FALSE, + ), + ), + 'indexes' => array( + 'fid' => array('fid'), + ), + ); +} + +/** * Install the schema for users upgrading from the contributed module. */ function image_update_7000() { |