Allows to perform a copy operation for the provided node.
The function can perform a simple copy, without attributes and childs, if both attributes are false. If the copy attributes and copy childs are activated, childs copied will have attributes copied.
- Parameters:
-
| node | The node source of information. |
| copy_attributes | Signals the function to copy node attributes into the newly created node. |
| copy_childs | Signals the function to copy childs for the source node. |
- Returns:
- A newly created node copy or null if it fails. The function will fail if the node reference provided is null.