function workflow_user_delete in Workflow 7
Same name and namespace in other branches
- 8 workflow.module \workflow_user_delete()
- 7.2 workflow.module \workflow_user_delete()
Implements hook_user_delete().
File
- ./
workflow.module, line 215 - Support workflows made up of arbitrary states.
Code
function workflow_user_delete($account) {
// Update tables for deleted account, move account to user 0 (anon.)
// ALERT: This may cause previously non-anon posts to suddenly be accessible to anon.
workflow_update_workflow_node_uid($account->uid, 0);
workflow_update_workflow_node_history_uid($account->uid, 0);
}