You are here

function clone_rules_event_info in Node clone 8

Same name and namespace in other branches
  1. 7 clone.rules.inc \clone_rules_event_info()

Implementation of hook_rules_event_info.

File

./node_clone.rules.inc, line 10
Node clone rules functions

Code

function clone_rules_event_info() {

  // Let rules know about the node clone event.
  $items = array(
    'clone_node' => array(
      'label' => t('After cloning a node'),
      'group' => t('Node'),
      'variables' => array(
        'cloned_node' => array(
          'type' => 'node',
          'label' => t('The cloned node'),
        ),
        'original_node' => array(
          'type' => 'node',
          'label' => t('The original node'),
        ),
      ),
    ),
  );
  return $items;
}