You are here

function workflow_rules_rules_event_info in Workflow 6.2

Same name and namespace in other branches
  1. 6 workflow_rules/workflow_rules.module \workflow_rules_rules_event_info()
  2. 7.2 workflow_rules/workflow_rules.rules.inc \workflow_rules_rules_event_info()
  3. 7 workflow_rules/workflow_rules.rules.inc \workflow_rules_rules_event_info()

Implementation of hook_rules_event_info().

File

workflow_rules/workflow_rules.module, line 11
Rules integration for the Workflow module

Code

function workflow_rules_rules_event_info() {
  $events = array(
    'workflow_state_changed' => array(
      'label' => t('Workflow state has changed'),
      'module' => 'Workflow',
      'arguments' => workflow_rules_events_workflow_arguments(),
    ),
    'workflow_comment_added' => array(
      'label' => t('Workflow comment was added'),
      'module' => 'Workflow',
      'arguments' => workflow_rules_events_workflow_arguments(),
      'description' => t('New workflow comment was added, but the workflow state did not change.'),
    ),
  );
  return $events;
}