function workflow_update_workflow_node_uid in Workflow 7
Same name and namespace in other branches
- 7.2 workflow.module \workflow_update_workflow_node_uid()
Given data, update the new user account. Called by user_delete().
1 call to workflow_update_workflow_node_uid()
- workflow_user_delete in ./
workflow.module - Implements hook_user_delete().
File
- ./
workflow.module, line 954 - Support workflows made up of arbitrary states.
Code
function workflow_update_workflow_node_uid($uid, $new_uid) {
return db_update('workflow_node')
->fields(array(
'uid' => $new_uid,
))
->condition('uid', $uid, '=')
->execute();
}