function workflow_comment in Workflow 5.2
Same name and namespace in other branches
- 6.2 workflow.module \workflow_comment()
- 6 workflow.module \workflow_comment()
Implementation of hook_comment().
File
- ./
workflow.module, line 367
Code
function workflow_comment($a1, $op) {
if (($op == 'insert' || $op == 'update') && isset($a1['workflow'])) {
$node = node_load($a1['nid']);
$sid = $a1['workflow'];
$node->workflow_comment = $a1['workflow_comment'];
workflow_transition($node, $sid);
}
}