You are here

function forward_rules_event_info in Forward 7

Same name and namespace in other branches
  1. 7.3 forward.rules.inc \forward_rules_event_info()
  2. 7.2 forward.rules.inc \forward_rules_event_info()

Implementation of hook_rules_event_info().

File

./forward.rules.inc, line 13
forward.rules.inc Expose the forward of a node event to rules

Code

function forward_rules_event_info() {
  $items = array(
    'node_forward' => array(
      'label' => t('After a node has been forwarded'),
      'group' => t('Node'),
      'variables' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User who forwarded'),
        ),
        'forwarded_node' => array(
          'type' => 'node',
          'label' => t('The node being forwarded'),
        ),
      ),
    ),
  );
  return $items;
}