You are here

function state_flow_rules_event_info in State Machine 7

Same name and namespace in other branches
  1. 7.2 modules/state_flow/state_flow.rules.inc \state_flow_rules_event_info()

Implements hook_rules_event_info().

Define Rules events that are triggered by State Flow.

File

modules/state_flow/state_flow.rules.inc, line 13
Rules integration for State Flow.

Code

function state_flow_rules_event_info() {
  $items = array(
    'state_flow_event_fired' => array(
      'label' => t('After a workflow transition occurs'),
      'group' => t('State Flow'),
      'variables' => rules_events_node_variables(t('transitioned content')) + array(
        'author' => array(
          'type' => 'user',
          'label' => t('content author'),
        ),
        'workflow-state' => array(
          'type' => 'text',
          'label' => t('state'),
        ),
      ),
    ),
  );
  return $items;
}