function panopoly_widgets_field_schema in Panopoly Widgets 7
Implementation of hook_field_schema().
File
- ./
panopoly_widgets.install, line 46 - An installation file for Panopoly Widgets
Code
function panopoly_widgets_field_schema($field) {
if ($field['type'] == 'panopoly_spotlight') {
$schema['columns']['title'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);
$schema['columns']['description'] = array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
);
$schema['columns']['fid'] = array(
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
);
$schema['columns']['link'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);
$schema['columns']['alt'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);
$schema['indexes'] = array(
'fid' => array(
'fid',
),
);
$schema['foreign keys'] = array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
);
return $schema;
}
}