function paragraphs_pack_field_schema in Paragraphs pack 7
Implements hook_field_schema().
File
- ./
paragraphs_pack.install, line 18 - Install, update and uninstall functions for the paragraphs_pack module.
Code
function paragraphs_pack_field_schema($field) {
$columns = array();
switch ($field['type']) {
case PP_FIELD_TYPE_VIEW_MODE:
$columns = array(
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
);
break;
}
return array(
'columns' => $columns,
'indexes' => array(
'value' => array(
'value',
),
),
);
}