Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2007 at 06:25 UTC
Updated:
2 Jul 2007 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
hunmonk commenteddww pointed out that we can handle update queries just like deletion queries, instead of passing them to a post-deletion callback. this version is much cleaner...
Comment #2
dwwAfter that initial correction, this mostly looks great. I haven't tested it yet, so I can't RTBC.
My only minor gripe is really a gripe w/ DAPI itself (and I'm surprised this got past Steven in the first place) -- I find the 'path' and 'destination' keys for the array you pass to hook_delete_confirm() too ambiguous to know what to do as a developer. I suspect a lot of people will waste a lot of time looking up docs to figure out what's what. 'path' should be renamed 'cancel', or something. :( But, that really isn't a reason to hold up this patch. I just wonder if we could do something about this before a) the code freeze and b) too many more DAPI conversions are done. Food for thought.
Otherwise, I tried *really* hard to find something wrong with this patch, but couldn't. ;)
Comment #3
dwwOk, I submitted http://drupal.org/node/154046 at the request of UnConeD and hunmonk about fixing 'path' vs. 'destination'. I think this patch should be on hold pending the outcome of that other effort.
Comment #4
hunmonk commented...and here's an updated patch that will work after http://drupal.org/node/154046 gets in...
Comment #5
hunmonk commentedfinal patch based upon the committed confirm form changes. all code is the same except for those tweaks. patch is tested as working.
Comment #6
hunmonk commentedone more tiny fix -- we want the user post deletion callback to be part of user_delete(), so the user info is always handled correctly when user_delete() is used by any other modules.
re-tested, and still working perfectly.
Comment #7
drewish commentedsubscribing. i think we also need to delete the user's photo... but that's a bug in the current code.
Comment #8
hunmonk commentedComment #9
webchickDeletion API was rolled back.