Sets the status of a node to 1 (published).
$node: A node object.
$context: (optional) Array of additional information about what triggered the action. Not used for this action.
function node_publish_action($node, $context = array()) {
$node->status = NODE_PUBLISHED;
watchdog('action', 'Set @type %title to published.', array(
'@type' => node_type_get_name($node),
'%title' => $node->title,
));
}