function workflow_rules_events_workflow_arguments in Workflow 6
Same name and namespace in other branches
- 6.2 workflow_rules/workflow_rules.module \workflow_rules_events_workflow_arguments()
Returns arguments for a workflow event.
1 call to workflow_rules_events_workflow_arguments()
- workflow_rules_rules_event_info in workflow_rules/
workflow_rules.module - Implementation of hook_rules_event_info().
File
- workflow_rules/
workflow_rules.module, line 31 - Rules integration for the Workflow module
Code
function workflow_rules_events_workflow_arguments() {
return array(
'node' => array(
'type' => 'node',
'label' => t('Updated content'),
),
'old_state' => array(
'type' => 'workflow_state',
'label' => t('Old workflow state'),
),
'new_state' => array(
'type' => 'workflow_state',
'label' => t('New workflow state'),
),
'author' => array(
'type' => 'user',
'label' => t('Content author'),
'handler' => 'rules_events_argument_node_author',
),
) + rules_events_global_user_argument();
}