clone.rules.inc 543 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file Node clone rules functions
  4. */
  5. /**
  6. * Implementation of hook_rules_event_info.
  7. */
  8. function clone_rules_event_info() {
  9. // Let rules know about the node clone event.
  10. $items = array(
  11. 'clone_node' => array(
  12. 'label' => t('After cloning a node'),
  13. 'group' => t('Node'),
  14. 'variables' => array(
  15. 'cloned_node' => array('type' => 'node', 'label' => t('The cloned node')),
  16. 'original_node' => array('type' => 'node', 'label' => t('The original node')),
  17. ),
  18. ),
  19. );
  20. return $items;
  21. }