function _workflow_write_history in Workflow 5
Same name and namespace in other branches
- 5.2 workflow.module \_workflow_write_history()
- 6.2 workflow.module \_workflow_write_history()
- 6 workflow.module \_workflow_write_history()
2 calls to _workflow_write_history()
- workflow_execute_transition in ./
workflow.module - Execute a transition (change state of a node).
- _workflow_node_to_state in ./
workflow.module - Put a node into a state. No permission checking here; only call this from other functions that know what they're doing.
File
- ./
workflow.module, line 1784
Code
function _workflow_write_history($node, $sid, $comment) {
global $user;
db_query("INSERT INTO {workflow_node_history} (nid, old_sid, sid, uid, comment, stamp) VALUES (%d, %d, %d, %d, '%s', %d)", $node->nid, $node->_workflow, $sid, $user->uid, $comment, $node->workflow_stamp);
}