function hook_workflow_fields in Workflow Fields 7
Used to describe non-fields to be handled during form rendering.
Parameters
$type: Content type being handled.
Return value
An array of keyed field entries. key: field name 'label' (required): field label 'path' (optional): explicit field path 'process' (optional): callback to handle hiding / read-only with signature process(&$form, $field, $path, $visible, $editable) 'process arguments' (optional): array of extra arguments to pass to callback
1 function implements hook_workflow_fields()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- workflow_fields_workflow_fields in ./
workflow_fields.module - Implements hook_workflow_fields().
1 invocation of hook_workflow_fields()
File
- ./
workflow_fields.api.php, line 21 - Hooks provided by the workflow_fields module.
Code
function hook_workflow_fields($type) {
// The Worflow Fields module uses this hook to manage the title field.
// Here is an example extracted from workflow_fields.module:
// Add the title to the list of fields managed by workflow_fields.
$content = node_type_get_type($type);
$fields = array();
if ($content->has_title) {
$fields['title'] = array(
'label' => $content->title_label,
'process' => '_workflow_fields_show_title',
);
}
return $fields;
}