diff options
Diffstat (limited to 'modules/image')
-rw-r--r-- | modules/image/image.field.inc | 31 | ||||
-rw-r--r-- | modules/image/image.install | 31 |
2 files changed, 31 insertions, 31 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc index d8a1788ca..106e68e26 100644 --- a/modules/image/image.field.inc +++ b/modules/image/image.field.inc @@ -34,37 +34,6 @@ function image_field_info() { } /** - * 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'), - ), - ); -} - -/** * Implements hook_field_settings_form(). */ function image_field_settings_form($field, $instance) { 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() { |