Hi
The basis use of this module is when you cancel a user the content belongs to this user can be assigned to other users from different roles.
Installation
Like other drupal module download the codebase from git url and put it inside your project, sites/all/modules directory and enble the module.
Configuration
1. Enable the module.
2. You will have one more option(5th) with the list of cancel options.
3. Option text will be "Disable the account and transfer its content to another user.".
4. If you want to assign the content to specific user, choose the role first,
then select another user and cancel the account of selected user.
Link Of Project : https://www.drupal.org/sandbox/shipra.wasson/2435969
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/shipra.wasson/2435969.git usercancel_contentassigntootheruser
Pareview:
http://pareview.sh/pareview/httpgitdrupalorgsandboxshiprawasson2435969git
Manual reviews of other projects:
1.https://www.drupal.org/node/2453657#comment-9728507
3. https://www.drupal.org/node/2427517#comment-9727939
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2015-04-14 18:48:39.png | 166.26 KB | shipra.wasson |
Comments
Comment #1
shipra.wasson commentedComment #2
shipra.wasson commentedComment #3
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 #4
shipra.wasson commentedComment #5
andrdrx commentedManual review
Comment #6
naveenvalechaPlease specify your project difference with this project(https://www.drupal.org/project/usercancel_contentassigntoadmin). I have checked and found that the project only provides to select the user during the cancellation if it is only single extra difference then I would suggest to please collaborate with the module author of usercancel_contentassigntoadmin,As Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. Please open an issue in the usercancel_contentassigntoadmin module and discuss with this feature. if the maintainers will not agree then re open this issue.
If have other differences other than I specified above then add a comment.
Manual Review (Commit 365587b):
$userid = $edit['users_list'];If the user will select None value from the select list returned by function usercancel_contentassigntootheruser_get_users, then it will make break the update in this function usercancel_contentassigntootheruser_user_cancel because uid is a numeric field.I would suggest to remove the none option from the userlist array returned by usercancel_contentassigntootheruser_get_users function.Comment #7
klausiSince we don't block applications on duplication anymore, this should go back to "needs review". If there is only this minor differences to the existing module, then we cannot give the git vetted user role away and will do a manual promotion of this single project.
@shipra.wasson: please reconsider contributing to the existing project or set this back to "needs review" if you must publish this as separate module.
Comment #8
naveenvalechaThanks @klausi,
So how are we going to deal with the old postponed applications ?
Comment #9
klausiI think we can leave them as they are, the applicants can set them back to "needs review" if they want to.
Comment #10
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #11
shipra.wasson commentedHi,
First of all sorry for taking so long. I have done all the improvement suggested by @naveenvalecha in Manual Review (Commit 365587b).
Also I would like to mention the difference between my module and (https://www.drupal.org/project/usercancel_contentassigntoadmin) is that this only allows you to transfer the content to admin, where as my module lets users to select role and then there is a auto suggest text field for finding user under that role and then the content can be shifted to new selected user.
For e.g. : If I have a manager has resigned in an organization and a new has been appointed in his place ,then the areas and divisions data can be easily transferred to new user.
Comment #12
naveenvalechaDuplication is no longer a blocker now, so this application can be proceeded.please take additional bonus that would help speed up the process
Comment #13
polaki_viswanath commentedNice module. Looks like RTBC +1
Thanks
Viswanath Polaki
Comment #14
shipra.wasson commentedAdding Bonus.
Comment #15
klausiRemoving review bonus tag, you have not done all manual reviews, you just pointed out a missing git clone link. Make sure to read through the source code of the other projects, as requested on the review bonus page.
Comment #16
shipra.wasson commentedManual reviews of other projects:
1) https://www.drupal.org/node/2542396#comment-10427441
2) https://www.drupal.org/node/2427517#comment-9727939
3) https://www.drupal.org/node/2453657#comment-9728507
Comment #17
andrew.mikhailov commentedHello!
I think you need to rewrite your hook_menu like this:
Here you will pass 2 arguments:
And so, you don't need to use args(2) - I think it's a bad style.
You need to correct your page callback to:
For me it looks better and it more drupal way than earlier.
Thank you.
Best regards.
Comment #18
andrew.mikhailov commentedComment #19
naveenvalechaAutomated Review :
Manual Review
Drupal.behaviors.userCancelwe should use the module_name namespace with in the Drupal.behaviours object.you can also use the $ instead of jQuery when accessing the values.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.
Removing the PAReview: Single project promote tag and not changing status due to open questions.
Comment #20
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #21
shipra.wasson commentedHi Andrew.Mikhailov
Thanks for your review, I will fix these issues and will change the status.
Comment #22
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #23
shipra.wasson commentedHi,
I have done the changes as suggest by @naveenvalecha.
Coding style & Drupal API usage
Thank you.
Best regards.
Comment #24
jyotisankar commentedLooks like RTBC +1
Comment #25
klausimanual review:
But otherwise looks good to me.
Thanks for your contribution, Shipra!
I updated your account so you can create new projects as either a sandbox or a "full" project. As I already said please do not promote this particular sandbox, because it would duplicate 2 already existing projects. Please contribute to those instead!
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.
Comment #26
hesnvabr commentedFound an errors in usercancel_contentassigntootheruser.module
FOUND 4 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------
166 | ERROR | [x] There must be exactly one blank line before the tags in
| | a doc comment
166 | ERROR | [x] Expected "string or int or object..." but found "type"
| | for parameter type
167 | ERROR | [ ] Parameter comment must start with a capital letter
167 | ERROR | [ ] Parameter comment must end with a full stop
Comment #28
avpaderno