function replicate_ui_replicate_node in Replicate UI 7
The action function for the 'replicate_ui_replicate_node'.
File
- ./
replicate_ui.rules.inc, line 92 - Replicate Rules code: actions, conditions and events.
Code
function replicate_ui_replicate_node($node) {
$new = replicate_entity('node', $node);
if ($new) {
drupal_set_message(t('Node @title has been replicated!', array(
'@title' => $node->title,
)));
return array(
'replica_node' => $new,
);
}
}