function _revisioning_publish_node in Revisioning 6.4
Publish node, without calling node_save()
Parameters
$node: Target $node object or nid of target node
File
- ./
revisioning_api.inc, line 199 - API functions of Revisioning module
Code
function _revisioning_publish_node($node) {
$nid = is_object($node) ? $node->nid : $node;
db_query("UPDATE {node} SET status=1 WHERE nid=%d", $nid);
cache_clear_all();
}