function oa_clone_clone_node_alter in Open Atrium Clone 7.2
Implements hook_clone_node_alter().
File
- ./
oa_clone.module, line 327
Code
function oa_clone_clone_node_alter(&$node, $context) {
// At the moment we don't have much generic that affects all cloning
// operations. In general, you shouldn't put things here, but rather in the
// module that is responsible for the thing you are adding support for.
// For example, sandbox support is done in oa_sandbox.
$original_node = $context['original_node'];
if (!empty($original_node->oa_clone_skip)) {
$node->oa_clone_skip = TRUE;
}
}