function workflow_rules_rules_event_info in Workflow 7
Same name and namespace in other branches
- 6.2 workflow_rules/workflow_rules.module \workflow_rules_rules_event_info()
- 6 workflow_rules/workflow_rules.module \workflow_rules_rules_event_info()
- 7.2 workflow_rules/workflow_rules.rules.inc \workflow_rules_rules_event_info()
Implements hook_rules_event_info().
File
- workflow_rules/
workflow_rules.rules.inc, line 19 - Rules integration for the Workflow module
Code
function workflow_rules_rules_event_info() {
$events = array(
'workflow_state_changed' => array(
'group' => t('Workflow'),
'label' => t('Workflow state has changed'),
'variables' => rules_events_node_variables(t('updated content'), TRUE),
),
'workflow_comment_added' => array(
'group' => t('Workflow'),
'label' => t('Workflow comment was added, but state did not change'),
'variables' => rules_events_node_variables(t('updated content'), TRUE),
),
);
return $events;
}