Hi..
As we know at the time of "Cancel user accounts", we have four options in drupal core that are following.
1. Disable the account and keep its content.
2. Disable the account and unpublish its content.
3. Delete the account and make its content belong to the Anonymous user.
4. Delete the account and its content.
This module has a feature to add one more option, to assign the content to admin while cancelling to selected users.
New option is:
"Delete the account and make its content belong to the administrator."
Project Link: https://www.drupal.org/sandbox/jaipal/2408333
Git clone command:
git clone --branch 7.x-1.x jaipal@git.drupal.org:sandbox/jaipal/2408333.git usercancel_contentassigntoadmin
Pareview:
http://pareview.sh/pareview/httpgitdrupalorgsandboxjaipal2408333git
Reviews of other projects:
https://www.drupal.org/node/2408539#comment-9537081
https://www.drupal.org/node/2423697#comment-9631383
https://www.drupal.org/node/2415601#comment-9631803
We needs to apply a patch with this module. The patch is avaliable with project.
I am attaching with same also.
| Comment | File | Size | Author |
|---|---|---|---|
| UserCancelDefault-2411351-1.patch | 508 bytes | jaipal |
Comments
Comment #1
nesta_ commentedChange git command to: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/jaipal/2408333.git
:)
Comment #2
nesta_ commentedFix http://pareview.sh/pareview/httpgitdrupalorgsandboxjaipal2408333git
Automated:
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit baec06f):
Remove "version" from the ./usercancel_contentassigntoadmin.info file, it will be added by drupal.org packaging automatically.
DrupalPractice has found some issues with your code, but could be false positives.
FILE: .../drupal-7-pareview/pareview_temp/usercancel_contentassigntoadmin.module
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
21 | WARNING | Unused global variable $user.
--------------------------------------------------------------------------------
Comment #3
polaki_viswanath commentedHi Jaipal
The module works fine. Only thing is "authored on" field getting changed when user who created the node is deleted. It might not be required since authored on field is used in many areas.
Thanks
Comment #4
jaipal commentedHi nguerrero
First of all thanks for review the module.
1. Now Git default branch is set.
2. Unused global variable "$user" has been removed.
3. Version information has been removed from info file.
Thanks.
Comment #5
jaipal commented#3, Thanks for the comment Polaki, I am not able to reproduce the issue. So could you please review and send me feedback again?
Comment #6
jaipal commentedComment #7
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #8
naveenvalechaAssigning to myself for next review, that may be happened tonight.
Comment #9
jaipal commented#8 Thanks Naveen. Please let me know for you feedback.
Comment #10
naveenvalechaFirst Thanks for your contribution! and helping in reviewing other project applications.
Automated Review
Best practice issues identified by pareview.sh / drupalcs / coder.
Review of the 7.x-1.x branch (commit 2d43990):
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Not found any blocker.So setting this to RTBC :)
Comment #11
klausiRemoving review bonus tag, no review comments listed in the issue summary? Make sure to read through the source code of the other projects, as requested on the review bonus page.
Comment #12
jaipal commentedComment #13
jaipal commented#10 Thanks for review Naveen.
1. hook_help() has been added.
2. As per you feedback, I have implemented the feature to select an admin user to assign content while cancelling to selected users. Please review it.
3. More information has been added on project page.
Let me know your feedback.
Thanks again :)
Comment #14
jaipal commentedComment #15
jaipal commentedComment #16
jaipal commentedComment #17
jaipal commentedAdding the new tag..
Comment #18
klausiThank you for your reiews. When finishing your review comment also set the issue status either to "needs work" (you found some problems with the project) or "reviewed & tested by the community" (you found no major flaws).
Review of the 7.x-1.x branch (commit 097a5c0):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But that are not critical application blockers, so ...
Thanks for your contribution, jaipal!
I promoted this project for you: https://www.drupal.org/project/usercancel_contentassigntoadmin
Now that this experimental project has been promoted, you'll need to update the URL of your remote repository or reclone it.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.