function workflow_user in Workflow 6.2
Same name and namespace in other branches
- 6 workflow.module \workflow_user()
Implementation of hook_user().
File
- ./
workflow.module, line 1244 - Support workflows made up of arbitrary states.
Code
function workflow_user($op, &$edit, &$account, $category = NULL) {
switch ($op) {
case 'delete':
db_query("UPDATE {workflow_node} SET uid = 0 WHERE uid = %d", $account->uid);
db_query("UPDATE {workflow_node_history} SET uid = 0 WHERE uid = %d", $account->uid);
break;
}
}