function workflow_content_extra_fields in Workflow 6
Same name and namespace in other branches
- 6.2 workflow.module \workflow_content_extra_fields()
Implementation of hook_content_extra_fields().
File
- ./
workflow.module, line 1235 - Support workflows made up of arbitrary states.
Code
function workflow_content_extra_fields($type_name) {
$extra = array();
if (!in_array('node', variable_get('workflow_' . $type_name, array(
'node',
)))) {
return;
}
$extra['workflow'] = array(
'label' => t('Workflow'),
'description' => t('Workflow module form'),
'weight' => 10,
);
return $extra;
}