function workflowfield_field_schema in Workflow 7.2
Same name and namespace in other branches
- 7 workflow_field/workflowfield.install \workflowfield_field_schema()
Implements hook_field_schema().
This schema is copied from workflow.install, $schema['workflow_node'] .
File
- workflow_field/
workflowfield.install, line 13 - Installs, updates and uninstalls functions for the list module.
Code
function workflowfield_field_schema($field) {
$columns = array(
'value' => array(
'description' => 'The {workflow_states}.sid that this node is currently in.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'disp-width' => '10',
),
);
return array(
'columns' => $columns,
/*
// 'primary key' => array('nid'),
// 'indexes' => array(
// 'nid' => array('nid', 'sid'),
// ),
*/
'indexes' => array(
'value' => array(
'value',
),
),
);
}