image_field_schema
function image_field_schema
image_field_schema($field)
Implements hook_field_schema().
File
- modules/image/image.install, line 119
- Install, update and uninstall functions for the image module.
Code
function image_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, ), 'alt' => array( 'description' => "Alternative image text, for the image's 'alt' attribute.", 'type' => 'varchar', 'length' => 512, 'not null' => FALSE, ), 'title' => array( 'description' => "Image title text, for the image's 'title' attribute.", 'type' => 'varchar', 'length' => 1024, 'not null' => FALSE, ), 'width' => array( 'description' => 'The width of the image in pixels.', 'type' => 'int', 'unsigned' => TRUE, ), 'height' => array( 'description' => 'The height of the image in pixels.', 'type' => 'int', 'unsigned' => TRUE, ), ), '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!image!image.install/function/image_field_schema/7.x