You are here

function _workflownode_rules_event_info in Workflow 7.2

Implements subfunction of hook_rules_event_info().

1 call to _workflownode_rules_event_info()
workflow_rules_rules_event_info in workflow_rules/workflow_rules.rules.inc
Implements hook_rules_event_info().

File

workflow_rules/workflow_rules.node.inc, line 10
Rules integration for the Workflow module with Node API.

Code

function _workflownode_rules_event_info() {
  $label = t('updated content');

  // Add variables for the 'node' type.
  $node_variables = rules_events_node_variables($label, TRUE);
  $events = array(
    'workflow_state_changed' => array(
      'group' => t('Workflow'),
      'label' => t('Workflow state has changed'),
      'variables' => $node_variables,
    ),
    'workflow_comment_added' => array(
      'group' => t('Workflow'),
      'label' => t('Workflow comment was added, but state did not change'),
      'variables' => $node_variables,
    ),
  );
  return $events;
}