function hook_node_convert_presave in Node Convert 7
Allow modifying a node during conversion but before the final save.
Parameters
stdClass $node: The node object.
array $hook_options: Additional options passed to node_convert_node_convert().
1 invocation of hook_node_convert_presave()
- node_convert_node_convert in ./
node_convert.util.inc - Converts a node to another content type.
File
- ./
node_convert.api.php, line 153 - API documentation for the node_convert module.
Code
function hook_node_convert_presave($node, $hook_options = array()) {
// Set the author to user 1.
$node->uid = 1;
}