both single user and multiple user deletions are done -- tested both as well and found no issues.

Comments

hunmonk’s picture

StatusFileSize
new9.29 KB

dww 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...

dww’s picture

After 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. ;)

dww’s picture

Status: Needs review » Postponed

Ok, 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.

hunmonk’s picture

StatusFileSize
new9.29 KB

...and here's an updated patch that will work after http://drupal.org/node/154046 gets in...

hunmonk’s picture

Status: Postponed » Reviewed & tested by the community
StatusFileSize
new9.31 KB

final patch based upon the committed confirm form changes. all code is the same except for those tweaks. patch is tested as working.

hunmonk’s picture

StatusFileSize
new9.23 KB

one 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.

drewish’s picture

subscribing. i think we also need to delete the user's photo... but that's a bug in the current code.

hunmonk’s picture

Assigned: hunmonk » Unassigned
webchick’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Deletion API was rolled back.