function paragraphs_field_schema in Paragraphs 7
Implements hook_field_schema().
File
- ./
paragraphs.install, line 122 - Install, update and uninstall functions for the paragraphs module.
Code
function paragraphs_field_schema($field) {
$columns = array();
if ($field['type'] == 'paragraphs') {
$columns = array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
'description' => 'The paragraph item id.',
),
'revision_id' => array(
'type' => 'int',
'not null' => FALSE,
'description' => 'The paragraph item revision id.',
),
);
}
return array(
'columns' => $columns,
);
}