function node_deploy in Deploy - Content Staging 6
Implementation of hook_deploy(),
Parameters
$nid: Unique identifier for the node we're deploying.
Return value
The results of our xmlrpc call.
File
- modules/
node_deploy/ node_deploy.module, line 106 - Deployment API which enables modules to deploy items between servers.
Code
function node_deploy($nid) {
// Bail if this node doesn't exist.
$node = node_load($nid);
if (empty($node)) {
return xmlrpc_error($xmlrpcusererr + 1, t('Node not found'));
}
// Now go deploy it.
return node_deploy_node($node);
}