function workflow_update_workflow_node_history_uid in Workflow 7.2
Same name and namespace in other branches
- 7 workflow.module \workflow_update_workflow_node_history_uid()
Given a user id, re-assign history to the new user account. Called by user_delete().
1 call to workflow_update_workflow_node_history_uid()
- workflow_user_delete in ./
workflow.module - Implements hook_user_delete().
File
- ./
workflow.module, line 884 - Support workflows made up of arbitrary states.
Code
function workflow_update_workflow_node_history_uid($uid, $new_value) {
return db_update('workflow_node_history')
->fields(array(
'uid' => $new_value,
))
->condition('uid', $uid, '=')
->execute();
}