You are here

function clone_rules_action_info in Node clone 7

Implements hook_rules_action_info().

File

./clone.rules.inc, line 28
Node clone rules functions

Code

function clone_rules_action_info() {
  $actions = array(
    'clone_action_node_clone' => array(
      'label' => t('Clone a node'),
      'group' => t('Node'),
      'parameter' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Node to clone'),
        ),
      ),
      'provides' => array(
        'clone' => array(
          'type' => 'node',
          'label' => t('Cloned node'),
        ),
      ),
    ),
  );
  return $actions;
}