function iss_field_schema in Image Style Selector 7
Implements hook_field_schema().
File
- ./
iss.install, line 15 - Install file for the Image Style Selector field.
Code
function iss_field_schema($field) {
if ($field['type'] == 'iss') {
// Although this is not the primary id of an image style, the theme function
// theme_image_formatter() uses the 'machine name' to apply the specific
// image style to the image.
$schema['columns']['image_style'] = array(
'description' => 'The image style name.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
);
$schema['indexes'] = array(
'image_style' => array(
'image_style',
),
);
return $schema;
}
}