Please can we have the ability to choose which user content gets reassigned to. I have several users that I wish to delete, but I don't want any of their content assigned to the Anonymous user like this module wants to do. Instead, I want to be able to select the user that should become the new owner of any reassigned content.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 614940-reassign-and-unpublish.patch | 2.13 KB | derhasi |
| #14 | userpoints_nc.zip | 2.59 KB | tobiberlin |
| #12 | user_delete-6.x-2.x-614940.patch | 6.64 KB | derhasi |
| #10 | user_delete-6.x-2.x-614940.patch | 6.64 KB | derhasi |
| #8 | user_delete-614940.patch | 4.72 KB | derhasi |
Comments
Comment #1
alliax commentedIf it's always the same user you want to assign the content to, then you could edit in the module directly, in the function user_delete_submit() at line 145:
Simply replaces uid = 0 by the user id of the one you want. 0 is the anonymous user.
If you want to select different users from a list, then changes to the modules are going to be too complicated for my skills, unfortunately.
Comment #2
sashainparisCode has changed: this 2 lines no longer exist.
How can we now modify the reassigned user?
Comment #3
dotidentity commentedAny updates on this?
Comment #4
dkingofpa commentedsub
Comment #5
ilo commentedLets keep 6.x-1.x as it is and moving feature requests for 2.x branch, this way we can introduce features as additional module that can be ported to d7 also.
Comment #6
derhasi commentedI did a patch for this issue for the 6.x-1.x- Branch. (Applied it against 1.3).
The patch is attached.
I'll try to implement this in the 2.x-branch as well, but as that branch seems not to be stable at the moment, we decided to patch 1.x instead. So for the moment I set this issue back to 1.x.
Comment #8
derhasi commentedOh, ok, modified the source and destination folders...
Comment #9
derhasi commentedComment #10
derhasi commentedThe above patch (#8) was applied to 6.x-1.x-dev.
And here is the 6.x-2.x-dev Version of the same functionality.
Comment #12
derhasi commentedHm... crazy... fixed line endings... should now work.
Comment #13
ilo commentedThanks derhasi for working on this. I'll take a look to the 2.x patch and see if there are additional changes to include.
Comment #14
tobiberlinI applied the above patch and got an error when "Userpoints Nodes and Comments" is enabled:
I attached the module file where you can find this line - it belongs to a bigger function which may be important for you to see what happens there.
Best,
Tobias
Comment #15
derhasi commented@tobiberlin, I guess this is a problem in userpoints module, that tries to use a user-object that does not exist or is malformatted.
Besides:
I wrote a patch in addition to comment #8 (for 6.x-1 branch) to support reassign content AND unpublish it. I upload it here only for people who might be interested in the same functionality for v1.